1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 23:47:45 +00:00

LibIPC: Make noise when shutting down because of an error

Previously, an IPC connection error could shut down the entire process
without giving a hint as to what's wrong. Now, we report that error to
the debug console.
This commit is contained in:
Jelle Raaijmakers 2022-06-10 17:21:00 +02:00 committed by Linus Groh
parent 1f736ced08
commit a39c38840e
3 changed files with 11 additions and 7 deletions

View file

@ -52,9 +52,9 @@ public:
this->shutdown();
}
void shutdown_with_error(Error const& error)
virtual void shutdown_with_error(Error const& error) override
{
dbgln("{} (id={}) had error ({}), disconnecting.", *this, m_client_id, error);
dbgln("{} (id={}) had an error ({}), disconnecting.", *this, m_client_id, error);
this->shutdown();
}