mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-11 18:20:43 +09:00
LibIPC: Add ClientConnection::shutdown_with_error()
Before this, we only had ClientConnection::did_misbehave() to report an error and shut the connection down. But it's not fair to say that *all* errors are the client misbehaving! A typical non-misbehavior is resource allocation failure on the server side.
This commit is contained in:
parent
e5dde37e24
commit
c6b4e7a2f6
Notes:
sideshowbarker
2024-07-18 01:25:00 +09:00
Author: https://github.com/awesomekling
Commit: c6b4e7a2f6
1 changed files with 6 additions and 0 deletions
|
@ -49,6 +49,12 @@ public:
|
|||
this->shutdown();
|
||||
}
|
||||
|
||||
void shutdown_with_error(Error const& error)
|
||||
{
|
||||
dbgln("{} (id={}) had error ({}), disconnecting.", *this, m_client_id, error);
|
||||
this->shutdown();
|
||||
}
|
||||
|
||||
int client_id() const { return m_client_id; }
|
||||
|
||||
virtual void die() = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue