From c31be5e45c3f11a27b4d3dd1fe601592ec279829 Mon Sep 17 00:00:00 2001 From: Clément Bénier Date: Tue, 10 Jul 2018 14:32:10 +0200 Subject: lockwait: loop and ev catcher also received event MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- conf.d/controller/lua.d/aft.lua | 1 + 1 file changed, 1 insertion(+) (limited to 'conf.d/controller') 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 -- cgit 1.2.3-korg