mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-07 00:48:41 +00:00
Fix shutdown() to accept any number of arguments
This commit is contained in:
parent
971c7e6f1d
commit
48ab9d7522
1 changed files with 5 additions and 2 deletions
|
@ -227,7 +227,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.
|
||||||
|
@ -240,7 +240,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