From e24bc9f3b99afba59c04a232ca5eaa9daef47e9e Mon Sep 17 00:00:00 2001 From: Tom Goff Date: Mon, 21 Sep 2015 12:36:51 -0400 Subject: [PATCH] daemon: Fix support for multiple session state hooks. --- daemon/core/session.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/daemon/core/session.py b/daemon/core/session.py index 9436d4a0..69e46560 100644 --- a/daemon/core/session.py +++ b/daemon/core/session.py @@ -312,7 +312,7 @@ class Session(object): if state not in self._hooks: self._hooks[state] = [hook,] else: - self._hooks[state] += hook + self._hooks[state].append(hook) # immediately run a hook if it is in the current state # (this allows hooks in the definition and configuration states) if self.getstate() == state: