summaryrefslogtreecommitdiffstats
path: root/conf.d/controller/lua.d
diff options
context:
space:
mode:
authorClément Bénier <clement.benier@iot.bzh>2018-07-10 14:32:10 +0200
committerRomain Forlot <romain.forlot@iot.bzh>2018-07-10 17:16:39 +0200
commitc31be5e45c3f11a27b4d3dd1fe601592ec279829 (patch)
tree30c1715484fdbbd05b786cd7a46a86921b0c2f33 /conf.d/controller/lua.d
parentef0ae0c644b37b2bcc130b7435941c77fe2bb437 (diff)
lockwait: loop and ev catcher also received event
warning: it may be possible to do better than that but the ev catcher is called at the next loop Change-Id: I2d69322f4079ccda0c85968861b8a9d0c4457855 Signed-off-by: Clément Bénier <clement.benier@iot.bzh>
Diffstat (limited to 'conf.d/controller/lua.d')
-rw-r--r--conf.d/controller/lua.d/aft.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/conf.d/controller/lua.d/aft.lua b/conf.d/controller/lua.d/aft.lua
index 6fd1882..e1b3d20 100644
--- a/conf.d/controller/lua.d/aft.lua
+++ b/conf.d/controller/lua.d/aft.lua
@@ -151,6 +151,7 @@ function _AFT.lockwait(eventName, timeout)
while timeout > 0 do
timeout = AFB:lockwait(_AFT.context, timeout)
+ AFB:lockwait(_AFT.context, 0) --without it ev catcher cannot received event
if _AFT.monitored_events[eventName].receivedCount == count + 1 then
return 1
end