mirror of
https://github.com/cuberite/libevent.git
synced 2025-09-10 13:04:23 -04:00
Merge remote-tracking branch 'origin/patches-2.0'
This commit is contained in:
commit
d5318b664d
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user