mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 19:07:35 +00:00
LibIPC: Fix losing messages when connection is closed
This fixes not processing any messages read up until a connection close is detected. We were returning from the function despite having read some messages.
This commit is contained in:
parent
c09071e166
commit
7e8a5d7323
1 changed files with 2 additions and 1 deletions
|
@ -197,8 +197,9 @@ protected:
|
|||
if (nread == 0) {
|
||||
if (bytes.is_empty()) {
|
||||
deferred_invoke([this](auto&) { shutdown(); });
|
||||
return false;
|
||||
}
|
||||
return false;
|
||||
break;
|
||||
}
|
||||
bytes.append(buffer, nread);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue