From ea042fa92f16dcaf09f9592becdade81c8e28014 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Damir=20Jeli=C4=87?= Date: Wed, 29 Apr 2020 16:28:51 +0200 Subject: [PATCH] ui: Don't run the glib loop if it was shut down already. --- pantalaimon/ui.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pantalaimon/ui.py b/pantalaimon/ui.py index 154a15d..25eb2f8 100644 --- a/pantalaimon/ui.py +++ b/pantalaimon/ui.py @@ -646,6 +646,9 @@ if UI_ENABLED: self.notifications = False GLib.timeout_add(100, self.message_callback) + if not self.loop: + return + self.loop.run() def stop(self):