Fix errors on quit.

This commit is contained in:
Andrew Resch 2008-01-21 09:13:36 +00:00
parent 72ea2d0632
commit 0b807e8945
2 changed files with 11 additions and 4 deletions

View File

@ -61,7 +61,10 @@ class Signals(component.Component):
self.config_value_changed)
def stop(self):
self.receiver.shutdown()
try:
self.receiver.shutdown()
except:
pass
def torrent_added_signal(self, torrent_id):
log.debug("torrent_added signal received..")

View File

@ -148,9 +148,13 @@ class StatusBar(component.Component):
def stop(self):
# When stopped, we just show the not connected thingy
self.remove_item(self.connections_item)
self.remove_item(self.download_item)
self.remove_item(self.upload_item)
try:
self.remove_item(self.connections_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()
def show_not_connected(self):