From 5d08aa21bf12e3acb635dbedf951bc34576f7243 Mon Sep 17 00:00:00 2001 From: tgoff0 Date: Tue, 24 Mar 2015 23:30:04 +0000 Subject: [PATCH] daemon: Set session configuration before setting the initial session state. --- daemon/core/session.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/daemon/core/session.py b/daemon/core/session.py index ef5da166..aea212a9 100644 --- a/daemon/core/session.py +++ b/daemon/core/session.py @@ -77,12 +77,12 @@ class Session(object): self._state = None self._hooks = {} self._state_hooks = {} + # dict of configuration items from /etc/core/core.conf config file + self.cfg = cfg self.add_state_hook(coreapi.CORE_EVENT_RUNTIME_STATE, self.runtime_state_hook) self.setstate(state=coreapi.CORE_EVENT_DEFINITION_STATE, info=False, sendevent=False) - # dict of configuration items from /etc/core/core.conf config file - self.cfg = cfg self.server = server if not persistent: self.addsession(self)