From 36e6da2abd7e1dd370432566c58f97d3d01baf2d Mon Sep 17 00:00:00 2001 From: woogerboy21 Date: Tue, 20 Dec 2016 16:15:16 -0800 Subject: [PATCH] Fix idle timeout warning on registration / login (#2322) Fix #2319 This should resolve the issue of users getting the popup immediately when logging in and the time out value is set to 0. This needs tested, its a quick fix put in with the web editor. --- common/server_protocolhandler.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/server_protocolhandler.cpp b/common/server_protocolhandler.cpp index f2d35a10..cb9d7b55 100644 --- a/common/server_protocolhandler.cpp +++ b/common/server_protocolhandler.cpp @@ -394,7 +394,7 @@ void Server_ProtocolHandler::pingClockTimeout() } } - if (((timeRunning - lastActionReceived) >= ceil(server->getIdleClientTimeout() *.9)) && (!idleClientWarningSent)) { + if (((timeRunning - lastActionReceived) >= ceil(server->getIdleClientTimeout() *.9)) && (!idleClientWarningSent) && (server->getIdleClientTimeout() > 0)) { Event_NotifyUser event; event.set_type(Event_NotifyUser::IDLEWARNING); SessionEvent *se = prepareSessionEvent(event);