Closing an UDP socket should wake all blocked recv()

This commit is contained in:
Pawel Dziepak
2013-05-28 20:44:10 +02:00
parent 9609ed8664
commit 83fd8a6199
@@ -965,6 +965,8 @@ status_t
UdpEndpoint::Close() UdpEndpoint::Close()
{ {
TRACE_EP("Close()"); TRACE_EP("Close()");
fSocket->error = EBADF;
WakeAll();
return B_OK; return B_OK;
} }