mirror of
https://github.com/codex-storage/deluge.git
synced 2025-01-13 13:05:37 +00:00
Add a defer property to use to check when the CoreConfig is ready
This commit is contained in:
parent
00d078a5ea
commit
56a1c50bc6
@ -35,7 +35,7 @@ class CoreConfig(component.Component):
|
||||
client.register_event_handler("ConfigValueChangedEvent", self.on_configvaluechanged_event)
|
||||
|
||||
def start(self):
|
||||
client.core.get_config().addCallback(self._on_get_config)
|
||||
self.start_defer = client.core.get_config().addCallback(self._on_get_config)
|
||||
|
||||
def stop(self):
|
||||
self.config = {}
|
||||
|
Loading…
x
Reference in New Issue
Block a user