Now notifies all pending selects when closing the socket.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19018 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
a7028ce680
commit
ee50138fcd
@ -71,6 +71,11 @@ err1:
|
||||
status_t
|
||||
socket_close(net_socket *socket)
|
||||
{
|
||||
if (socket->select_pool) {
|
||||
// notify all pending selects
|
||||
notify_select_event_pool(socket->select_pool, ~0);
|
||||
}
|
||||
|
||||
return socket->first_info->close(socket->first_protocol);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user