mirror of
https://github.com/codex-storage/deluge.git
synced 2025-01-14 05:26:28 +00:00
Fix stopping signalreceiver
This commit is contained in:
parent
1e02029fe1
commit
5aa3bfd16d
@ -70,8 +70,12 @@ 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.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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user