mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 06:48:12 +00:00
IPv4: Don't hold IPv4Socket lock when blocking on byte-buffered receive
This commit is contained in:
parent
1d506a935c
commit
22d563b1aa
1 changed files with 0 additions and 1 deletions
|
@ -256,7 +256,6 @@ ssize_t IPv4Socket::recvfrom(FileDescription& description, void* buffer, size_t
|
|||
#endif
|
||||
|
||||
if (buffer_mode() == BufferMode::Bytes) {
|
||||
LOCKER(lock());
|
||||
if (m_receive_buffer.is_empty()) {
|
||||
if (protocol_is_disconnected()) {
|
||||
return 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue