Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

merge 2 aeDeleteFileEvent calls to one in freeClusterLink() #965

Open
wants to merge 1 commit into from

2 participants

@charsyam

Don't need to call aeDeleteFileEvent() twice.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Feb 24, 2013
  1. @openbaas

    merge 2 calls to one

    openbaas authored
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 2 deletions.
  1. +1 −2  src/cluster.c
View
3  src/cluster.c
@@ -267,8 +267,7 @@ clusterLink *createClusterLink(clusterNode *node) {
* with this link will have the 'link' field set to NULL. */
void freeClusterLink(clusterLink *link) {
if (link->fd != -1) {
- aeDeleteFileEvent(server.el, link->fd, AE_WRITABLE);
- aeDeleteFileEvent(server.el, link->fd, AE_READABLE);
+ aeDeleteFileEvent(server.el, link->fd, AE_READABLE|AE_WRITABLE);
}
sdsfree(link->sndbuf);
sdsfree(link->rcvbuf);
Something went wrong with that request. Please try again.