mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-22 17:29:01 +00:00
Inspector: Allow browsing inspection data in UI after process exits
This commit is contained in:
parent
f80b40b411
commit
58abdde2e4
Notes:
sideshowbarker
2024-07-18 22:43:40 +09:00
Author: https://github.com/bcoles
Commit: 58abdde2e4
Pull-request: https://github.com/SerenityOS/serenity/pull/5180
Issue: https://github.com/SerenityOS/serenity/issues/4938
1 changed files with 5 additions and 1 deletions
|
@ -152,7 +152,11 @@ void RemoteProcess::update()
|
|||
|
||||
u32 length;
|
||||
int nread = m_socket->read((u8*)&length, sizeof(length));
|
||||
ASSERT(nread == sizeof(length));
|
||||
if (nread != sizeof(length)) {
|
||||
dbgln("Disconnected from PID {}", m_pid);
|
||||
m_socket->close();
|
||||
return;
|
||||
}
|
||||
|
||||
ByteBuffer data;
|
||||
size_t remaining_bytes = length;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue