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:
parent
05c2782a81
commit
bd8d612c9f
1 changed files with 2 additions and 0 deletions
|
@ -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.");
|
||||
|
|
Loading…
Reference in a new issue