diff --git a/deluge/ui/gtkui/gtkui.py b/deluge/ui/gtkui/gtkui.py index a1c3795b4..9418e56d1 100644 --- a/deluge/ui/gtkui/gtkui.py +++ b/deluge/ui/gtkui/gtkui.py @@ -238,9 +238,6 @@ class GtkUI: def shutdown(self, *args, **kwargs): log.debug("gtkui shutting down..") - # Make sure the config is saved. - self.config.save() - # Shutdown all components component.shutdown() if self.started_in_classic: @@ -248,8 +245,10 @@ class GtkUI: client.shutdown() except: pass - + + # Make sure the config is saved. self.config.save() + try: gtk.main_quit() except RuntimeError: