In the MOBILEAPP case, don't set TerminationFlag when there are no sessions

The global TerminationFlag is an abomination that has caused lots of
trouble when developing the mobile app. The less we use it the better.
Here, it gets set elsewhere already when needed; just having no
sessions is not reason enough to set it.
This commit is contained in:
Tor Lillqvist 2018-10-17 20:00:59 +03:00
parent 05c2782a81
commit bd8d612c9f

View file

@ -2492,11 +2492,13 @@ void lokit_main(
{
mainKit.poll(SocketPoll::DefaultPollTimeoutMs);
#ifndef MOBILEAPP
if (document && document->purgeSessions() == 0)
{
LOG_INF("Last session discarded. Setting TerminationFlag");
TerminationFlag = true;
}
#endif
}
LOG_INF("Kit poll terminated.");