Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/patches-2.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
nmathewson committed Oct 26, 2012
2 parents cda69d0 + cb853ea commit d5318b6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions listener.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit d5318b6

Please sign in to comment.