mirror of
https://github.com/codex-storage/deluge.git
synced 2025-02-17 13:56:47 +00:00
[Core] Fix unnecessary delay when starting components
This commit is contained in:
parent
edf616baca
commit
ec366c840c
@ -102,7 +102,7 @@ class Component(object):
|
|||||||
if self._component_state == "Stopped":
|
if self._component_state == "Stopped":
|
||||||
if hasattr(self, "start"):
|
if hasattr(self, "start"):
|
||||||
self._component_state = "Starting"
|
self._component_state = "Starting"
|
||||||
d = deferLater(reactor, 1, self.start)
|
d = deferLater(reactor, 0, self.start)
|
||||||
d.addCallbacks(on_start, on_start_fail)
|
d.addCallbacks(on_start, on_start_fail)
|
||||||
self._component_starting_deferred = d
|
self._component_starting_deferred = d
|
||||||
else:
|
else:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user