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)