diff --git a/src/add-ons/kernel/network/stack/net_socket.cpp b/src/add-ons/kernel/network/stack/net_socket.cpp index 8876080554..c9acf0445a 100644 --- a/src/add-ons/kernel/network/stack/net_socket.cpp +++ b/src/add-ons/kernel/network/stack/net_socket.cpp @@ -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); }