Browse Source

LibGUI: Do not attempt to close non-existent notifications

implicitfield 2 years ago
parent
commit
ba8bd2e558
1 changed files with 2 additions and 1 deletions
  1. 2 1
      Userland/Libraries/LibGUI/Notification.cpp

+ 2 - 1
Userland/Libraries/LibGUI/Notification.cpp

@@ -22,7 +22,8 @@ class ConnectionToNotificationServer final
 public:
     virtual void die() override
     {
-        m_notification->connection_closed();
+        if (!m_notification->m_destroyed)
+            m_notification->connection_closed();
     }
 
 private: