mirror of
https://github.com/RGBCube/serenity
synced 2025-07-23 20:27:35 +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
|
#endif
|
||||||
|
|
||||||
if (buffer_mode() == BufferMode::Bytes) {
|
if (buffer_mode() == BufferMode::Bytes) {
|
||||||
LOCKER(lock());
|
|
||||||
if (m_receive_buffer.is_empty()) {
|
if (m_receive_buffer.is_empty()) {
|
||||||
if (protocol_is_disconnected()) {
|
if (protocol_is_disconnected()) {
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue