mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-20 08:18:55 +00:00
WindowServer: Close accepted sockets when the client has disconnected.
This commit is contained in:
parent
7bb00ea1e3
commit
b0be3299b5
Notes:
sideshowbarker
2024-07-19 15:40:50 +09:00
Author: https://github.com/awesomekling
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