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
commit 58abdde2e4
Notes: sideshowbarker 2024-07-18 22:43:40 +09:00

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;