mirror of
https://github.com/codex-storage/deluge.git
synced 2025-02-04 15:43:28 +00:00
Close the connection manager on shutdown - patch from Jan Steffens
This commit is contained in:
parent
5766e04987
commit
23544bd6b2
@ -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…
x
Reference in New Issue
Block a user