mirror of https://mirror.osredm.com/root/redis.git
Merge two aeDeleteFileEvent refs into one (#7521)
Merge two aeDeleteFileEvent refs into one
This commit is contained in:
parent
79a7c17176
commit
cf88779527
|
@ -147,8 +147,7 @@ void *connGetPrivateData(connection *conn) {
|
||||||
/* Close the connection and free resources. */
|
/* Close the connection and free resources. */
|
||||||
static void connSocketClose(connection *conn) {
|
static void connSocketClose(connection *conn) {
|
||||||
if (conn->fd != -1) {
|
if (conn->fd != -1) {
|
||||||
aeDeleteFileEvent(server.el,conn->fd,AE_READABLE);
|
aeDeleteFileEvent(server.el,conn->fd, AE_READABLE | AE_WRITABLE);
|
||||||
aeDeleteFileEvent(server.el,conn->fd,AE_WRITABLE);
|
|
||||||
close(conn->fd);
|
close(conn->fd);
|
||||||
conn->fd = -1;
|
conn->fd = -1;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue