WindowServer: Close accepted sockets when the client has disconnected.

This commit is contained in:
Andreas Kling 2019-02-17 10:59:58 +01:00
commit b0be3299b5
Notes: sideshowbarker 2024-07-19 15:40:50 +09:00

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)