This commit is contained in:
Maximilian Hils 2014-05-15 14:16:05 +02:00
parent 221bbb7369
commit 9cba4f8d39

View File

@ -106,9 +106,11 @@ class Script:
def _handle_concurrent_reply(fn, o, args=[], kwargs={}): def _handle_concurrent_reply(fn, o, args=[], kwargs={}):
reply = o.reply reply = o.reply
o.reply = controller.DummyReply() o.reply = controller.DummyReply()
if hasattr(reply, "q"):
o.reply.q = reply.q
def run(): def run():
fn(*args, **kwargs) fn(*args, **kwargs)
reply(o) reply()
threading.Thread(target=run, name="ScriptThread").start() threading.Thread(target=run, name="ScriptThread").start()