Fix signals.

This commit is contained in:
Andrew Resch 2008-01-20 01:00:39 +00:00
parent df29d7d69a
commit 28a4883a72
1 changed files with 4 additions and 2 deletions

View File

@ -94,7 +94,6 @@ class Core(
SimpleXMLRPCServer.SimpleXMLRPCServer):
def __init__(self, port):
log.debug("Core init..")
#threading.Thread.__init__(self)
self.client_address = None
@ -248,7 +247,10 @@ class Core(
gobject.threads_init()
self.loop = gobject.MainLoop()
try:
self.loop.run()
except KeyboardInterrupt:
self._shutdown()
def _shutdown(self, data=None):
"""This is called by a thread from shutdown()"""