changeset 2486:031aa3cc67ac

jp (base): fixed assertion error when using CommandAnswering
author Goffi <goffi@goffi.org>
date Tue, 30 Jan 2018 08:43:52 +0100
parents 512c443a58ba
children ed1d71b91b29
files frontends/src/jp/base.py
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/frontends/src/jp/base.py	Tue Jan 30 08:17:17 2018 +0100
+++ b/frontends/src/jp/base.py	Tue Jan 30 08:43:52 2018 +0100
@@ -874,6 +874,10 @@
                           # which will manage the answer. profile filtering is
                           # already managed when callback is called
 
+    def __init__(self, *args, **kwargs):
+        super(CommandAnswering, self).__init__(*args, **kwargs)
+        self.need_loop = True
+
     def onActionNew(self, action_data, action_id, security_limit, profile):
         if profile != self.profile:
             return