mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-05 07:58:38 +00:00
Close connection manager on shutdown - patch from Jan Steffens
This commit is contained in:
parent
72fd3bd061
commit
9e4a92444b
1 changed files with 5 additions and 1 deletions
|
@ -99,12 +99,16 @@ class ConnectionManager(component.Component):
|
||||||
|
|
||||||
self.config = ConfigManager("hostlist.conf.1.2", DEFAULT_CONFIG)
|
self.config = ConfigManager("hostlist.conf.1.2", DEFAULT_CONFIG)
|
||||||
|
|
||||||
|
self.running = False
|
||||||
|
|
||||||
# Component overrides
|
# Component overrides
|
||||||
def start(self):
|
def start(self):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
def stop(self):
|
def stop(self):
|
||||||
pass
|
# Close this dialog when we are shutting down
|
||||||
|
if self.running:
|
||||||
|
self.connection_manager.response(gtk.RESPONSE_CLOSE)
|
||||||
|
|
||||||
def shutdown(self):
|
def shutdown(self):
|
||||||
pass
|
pass
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue