Skip to content

Commit

Permalink
net_socket: notify of socket errors immediately when selected
Browse files Browse the repository at this point in the history
  • Loading branch information
hamishm committed May 31, 2015
1 parent 03f60b0 commit 2d5706f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/add-ons/kernel/network/stack/net_socket.cpp
Expand Up @@ -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;
}

Expand Down

0 comments on commit 2d5706f

Please sign in to comment.