ui: Don't run the glib loop if it was shut down already.

This commit is contained in:
Damir Jelić 2020-04-29 16:28:51 +02:00
parent ed942187d4
commit ea042fa92f

View File

@ -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):