1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 04:37:34 +00:00

Inspector: Allow browsing inspection data in UI after process exits

This commit is contained in:
Brendan Coles 2021-01-30 12:47:36 +00:00 committed by Andreas Kling
parent f80b40b411
commit 58abdde2e4

View file

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