adzap: update monitorLifeTime before leaving in case event has changed

Origin commit data
------------------
Commit: 3cee9eeb6e
Author: vanhofen <vanhofen@gmx.de>
Date: 2016-02-28 (Sun, 28 Feb 2016)

Origin message was:
------------------
- adzap: update monitorLifeTime before leaving in case event has changed
This commit is contained in:
vanhofen
2016-02-28 23:09:44 +01:00
parent 7154d0293c
commit f25907e360

View File

@@ -232,6 +232,9 @@ int CAdZapMenu::exec(CMenuTarget *parent, const std::string & actionKey)
armed = false;
monitor = true;
alerted = false;
if (!evtlist.empty())
monitorLifeTime.tv_sec = getMonitorLifeTime();
printf("CAdZapMenu::%s: monitorLifeTime.tv_sec: %d\n", __func__, (uint) monitorLifeTime.tv_sec);
Update();
return res;
}