Permalink
Browse files

Merge remote-tracking branch 'origin/patches-2.0'

  • Loading branch information...
Nick Mathewson
Nick Mathewson committed Oct 26, 2012
2 parents cda69d0 + cb853ea commit d5318b664db906a19ebb3cefefbdf065cf1330c6
Showing with 4 additions and 0 deletions.
  1. +4 −0 listener.c
View
@@ -737,6 +737,10 @@ iocp_listener_disable_impl(struct evconnlistener *lev, int shutdown)
}
LeaveCriticalSection(&as->lock);
}
+
+ if (shutdown && lev->flags & LEV_OPT_CLOSE_ON_FREE)
+ evutil_closesocket(lev_iocp->fd);
+
UNLOCK(lev);
return 0;
}

0 comments on commit d5318b6

Please sign in to comment.