mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-04 15:38:43 +00:00
Fix signalreceiver when switching between daemons
This commit is contained in:
parent
feb54cd785
commit
78eabc66a8
3 changed files with 5 additions and 4 deletions
|
@ -10,6 +10,7 @@ Deluge 0.9.04 - "1.0.0_RC4" (In Development)
|
||||||
* Display 'total_wanted' instead of 'total_size' in Size column
|
* Display 'total_wanted' instead of 'total_size' in Size column
|
||||||
* Fix displaying of torrents when language is not English
|
* Fix displaying of torrents when language is not English
|
||||||
* Fix the view options to be persistent between sessions
|
* Fix the view options to be persistent between sessions
|
||||||
|
* Fix signalreceiver when switching between daemons
|
||||||
|
|
||||||
Deluge 0.9.03 - "1.0.0_RC3" (21 July 2008)
|
Deluge 0.9.03 - "1.0.0_RC3" (21 July 2008)
|
||||||
Core:
|
Core:
|
||||||
|
|
|
@ -48,8 +48,7 @@ class Signals(component.Component):
|
||||||
self.config.save()
|
self.config.save()
|
||||||
|
|
||||||
def start(self):
|
def start(self):
|
||||||
if not client.is_localhost():
|
self.receiver.set_remote(not client.is_localhost())
|
||||||
self.receiver.set_remote(True)
|
|
||||||
|
|
||||||
self.receiver.run()
|
self.receiver.run()
|
||||||
self.receiver.connect_to_signal("torrent_added",
|
self.receiver.connect_to_signal("torrent_added",
|
||||||
|
|
|
@ -50,8 +50,6 @@ class SignalReceiver(ThreadingMixIn, SimpleXMLRPCServer.SimpleXMLRPCServer):
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
log.debug("SignalReceiver init..")
|
log.debug("SignalReceiver init..")
|
||||||
# Set to true so that the receiver thread will exit
|
|
||||||
self._shutdown = False
|
|
||||||
|
|
||||||
self.signals = {}
|
self.signals = {}
|
||||||
self.emitted_signals = []
|
self.emitted_signals = []
|
||||||
|
@ -110,6 +108,9 @@ class SignalReceiver(ThreadingMixIn, SimpleXMLRPCServer.SimpleXMLRPCServer):
|
||||||
|
|
||||||
def run(self):
|
def run(self):
|
||||||
"""This gets called when we start the thread"""
|
"""This gets called when we start the thread"""
|
||||||
|
# Set to true so that the receiver thread will exit
|
||||||
|
self._shutdown = False
|
||||||
|
|
||||||
# Register the signal receiver with the core
|
# Register the signal receiver with the core
|
||||||
client.register_client(str(self.port))
|
client.register_client(str(self.port))
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue