Skip to content

Commit

Permalink
Close() Optimization
Browse files Browse the repository at this point in the history
  • Loading branch information
yulonghu committed Nov 8, 2018
1 parent 86ecbb7 commit 2a1ef96
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion redis.c
Original file line number Diff line number Diff line change
Expand Up @@ -1012,7 +1012,7 @@ PHP_METHOD(Redis, close)
{
RedisSock *redis_sock = redis_sock_get_connected(INTERNAL_FUNCTION_PARAM_PASSTHRU);

if (redis_sock && redis_sock_disconnect(redis_sock, 1 TSRMLS_CC) == SUCCESS) {
if (redis_sock_disconnect(redis_sock, 1 TSRMLS_CC) == SUCCESS) {
RETURN_TRUE;
}
RETURN_FALSE;
Expand Down

0 comments on commit 2a1ef96

Please sign in to comment.