mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-04 07:28:39 +00:00
Handle shutting down more cleanly in the gtkui
This commit is contained in:
parent
da309c66c3
commit
f853ac209b
2 changed files with 8 additions and 2 deletions
|
@ -3,6 +3,9 @@ Deluge 0.9.05 - "1.0.0_RC5" (In Development)
|
||||||
* Fix deluged running with ssh X forwarding by removing the Gnome lib import
|
* Fix deluged running with ssh X forwarding by removing the Gnome lib import
|
||||||
* Save resume data periodically to help prevent data loss
|
* Save resume data periodically to help prevent data loss
|
||||||
|
|
||||||
|
GtkUI:
|
||||||
|
* Handle shutting down more cleanly
|
||||||
|
|
||||||
Plugins:
|
Plugins:
|
||||||
* Improve the Blocklist plugin preferences page.
|
* Improve the Blocklist plugin preferences page.
|
||||||
|
|
||||||
|
|
|
@ -216,7 +216,7 @@ class GtkUI:
|
||||||
else:
|
else:
|
||||||
self.shutdown()
|
self.shutdown()
|
||||||
|
|
||||||
def shutdown(self, data=None):
|
def shutdown(self, *args, **kwargs):
|
||||||
log.debug("gtkui shutting down..")
|
log.debug("gtkui shutting down..")
|
||||||
|
|
||||||
# Make sure the config is saved.
|
# Make sure the config is saved.
|
||||||
|
@ -229,7 +229,10 @@ class GtkUI:
|
||||||
client.shutdown()
|
client.shutdown()
|
||||||
except:
|
except:
|
||||||
pass
|
pass
|
||||||
|
try:
|
||||||
|
gtk.main_quit()
|
||||||
|
except RuntimeError:
|
||||||
|
pass
|
||||||
|
|
||||||
def _on_new_core(self, data):
|
def _on_new_core(self, data):
|
||||||
component.start()
|
component.start()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue