mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-10 02:54:54 +03: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
Notes:
sideshowbarker
2024-07-18 08:38:55 +09:00
Author: https://github.com/tomuta Commit: https://github.com/SerenityOS/serenity/commit/7e8a5d7323f Pull-request: https://github.com/SerenityOS/serenity/pull/8912
@ -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…
Reference in New Issue
Block a user