Add a defer property to use to check when the CoreConfig is ready

This commit is contained in:
Andrew Resch 2009-04-18 18:27:35 +00:00
parent 00d078a5ea
commit 56a1c50bc6
1 changed files with 1 additions and 1 deletions

View File

@ -35,7 +35,7 @@ class CoreConfig(component.Component):
client.register_event_handler("ConfigValueChangedEvent", self.on_configvaluechanged_event) client.register_event_handler("ConfigValueChangedEvent", self.on_configvaluechanged_event)
def start(self): 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): def stop(self):
self.config = {} self.config = {}