Fix errors on quit.
This commit is contained in:
parent
72ea2d0632
commit
0b807e8945
|
@ -61,7 +61,10 @@ class Signals(component.Component):
|
||||||
self.config_value_changed)
|
self.config_value_changed)
|
||||||
|
|
||||||
def stop(self):
|
def stop(self):
|
||||||
self.receiver.shutdown()
|
try:
|
||||||
|
self.receiver.shutdown()
|
||||||
|
except:
|
||||||
|
pass
|
||||||
|
|
||||||
def torrent_added_signal(self, torrent_id):
|
def torrent_added_signal(self, torrent_id):
|
||||||
log.debug("torrent_added signal received..")
|
log.debug("torrent_added signal received..")
|
||||||
|
|
|
@ -148,9 +148,13 @@ class StatusBar(component.Component):
|
||||||
|
|
||||||
def stop(self):
|
def stop(self):
|
||||||
# When stopped, we just show the not connected thingy
|
# When stopped, we just show the not connected thingy
|
||||||
self.remove_item(self.connections_item)
|
try:
|
||||||
self.remove_item(self.download_item)
|
self.remove_item(self.connections_item)
|
||||||
self.remove_item(self.upload_item)
|
self.remove_item(self.download_item)
|
||||||
|
self.remove_item(self.upload_item)
|
||||||
|
self.remove_item(self.not_connected_item)
|
||||||
|
except:
|
||||||
|
pass
|
||||||
self.show_not_connected()
|
self.show_not_connected()
|
||||||
|
|
||||||
def show_not_connected(self):
|
def show_not_connected(self):
|
||||||
|
|
Loading…
Reference in New Issue