IPv4: Don't hold IPv4Socket lock when blocking on byte-buffered receive

This commit is contained in:
Andreas Kling
2020-01-26 10:25:40 +01:00
parent 1d506a935c
commit 22d563b1aa

View File

@@ -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;