net_socket: notify of socket errors immediately when selected

This commit is contained in:
Hamish Morrison 2015-05-30 13:42:42 +01:00
parent 03f60b036c
commit 2d5706f792

View File

@ -905,7 +905,8 @@ socket_request_notification(net_socket* _socket, uint8 event, selectsync* sync)
break;
}
case B_SELECT_ERROR:
// TODO: B_SELECT_ERROR condition!
if (socket->error != B_OK)
notify_select_event(sync, event);
break;
}