Minor touch-ups.

This commit is contained in:
Andrew Resch 2007-10-24 21:11:33 +00:00
parent 294945dca2
commit 60eeb8deed
3 changed files with 6 additions and 4 deletions

1
TODO
View File

@ -1,4 +1,3 @@
* Have the ui better handle not being able to connect to the daemon.
* Add state saving to listview.. this includes saving column size and position.
* Queue plugin 'apply_queue' stuff.. Just finishing the queue plugin and it's
intended functionality.

View File

@ -84,7 +84,7 @@ class AlertManager:
# Call any handlers for this alert type
if alert_type in self.handlers.keys():
for handler in self.handlers[alert_type]:
handler(alert)
gobject.idle_add(handler, alert)
alert = self.session.pop_alert()

View File

@ -82,8 +82,11 @@ class SignalReceiver(
"""Shutdowns receiver thread"""
self._shutdown = True
# De-register with the daemon so it doesn't try to send us more signals
try:
client.get_core().deregister_client(
"http://localhost:" + str(self.port))
except (socket.error, AttributeError):
pass
# Hacky.. sends a request to our local receiver to ensure that it
# shutdowns.. This is because handle_request() is a blocking call.