1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 10:18:11 +00:00

WindowServer: Close accepted sockets when the client has disconnected.

This commit is contained in:
Andreas Kling 2019-02-17 10:59:58 +01:00
parent 7bb00ea1e3
commit b0be3299b5

View file

@ -49,6 +49,8 @@ WSClientConnection::WSClientConnection(int fd)
WSClientConnection::~WSClientConnection()
{
s_connections->remove(m_client_id);
int rc = close(m_fd);
ASSERT(rc == 0);
}
void WSClientConnection::post_error(const String& error_message)