Fix stopping signalreceiver
This commit is contained in:
parent
1e02029fe1
commit
5aa3bfd16d
|
@ -70,9 +70,13 @@ class SignalReceiver(
|
|||
"""Shutdowns receiver thread"""
|
||||
self._shutdown = True
|
||||
# De-register with the daemon so it doesn't try to send us more signals
|
||||
client.deregister_client()
|
||||
client.force_call()
|
||||
|
||||
try:
|
||||
client.deregister_client()
|
||||
client.force_call()
|
||||
except:
|
||||
pass
|
||||
log.debug("Shutting down signalreceiver")
|
||||
|
||||
# Hacky.. sends a request to our local receiver to ensure that it
|
||||
# shutdowns.. This is because handle_request() is a blocking call.
|
||||
receiver = xmlrpclib.ServerProxy("http://localhost:" + str(self.port),
|
||||
|
|
Loading…
Reference in New Issue