summaryrefslogtreecommitdiff
path: root/Servers
diff options
context:
space:
mode:
Diffstat (limited to 'Servers')
-rw-r--r--Servers/WindowServer/WSClientConnection.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/Servers/WindowServer/WSClientConnection.cpp b/Servers/WindowServer/WSClientConnection.cpp
index 114a98ed5d..0b02575837 100644
--- a/Servers/WindowServer/WSClientConnection.cpp
+++ b/Servers/WindowServer/WSClientConnection.cpp
@@ -81,7 +81,9 @@ WSClientConnection::~WSClientConnection()
void WSClientConnection::die()
{
- s_connections->remove(client_id());
+ deferred_invoke([this](auto&) {
+ s_connections->remove(client_id());
+ });
}
void WSClientConnection::notify_about_new_screen_rect(const Rect& rect)