mirror of
https://github.com/RGBCube/serenity
synced 2025-07-24 21:17:42 +00:00
WindowServer: Close accepted sockets when the client has disconnected.
This commit is contained in:
parent
7bb00ea1e3
commit
b0be3299b5
1 changed files with 2 additions and 0 deletions
|
@ -49,6 +49,8 @@ WSClientConnection::WSClientConnection(int fd)
|
||||||
WSClientConnection::~WSClientConnection()
|
WSClientConnection::~WSClientConnection()
|
||||||
{
|
{
|
||||||
s_connections->remove(m_client_id);
|
s_connections->remove(m_client_id);
|
||||||
|
int rc = close(m_fd);
|
||||||
|
ASSERT(rc == 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
void WSClientConnection::post_error(const String& error_message)
|
void WSClientConnection::post_error(const String& error_message)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue