From 9eecc9f22473c075247770a3958fa443dab23813 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sat, 22 Feb 2025 11:03:13 +0200 Subject: advanced version of the previous fix --- plugins/StatusManager/src/ks_main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'plugins/StatusManager/src') diff --git a/plugins/StatusManager/src/ks_main.cpp b/plugins/StatusManager/src/ks_main.cpp index 88ddf97408..fd8000a662 100644 --- a/plugins/StatusManager/src/ks_main.cpp +++ b/plugins/StatusManager/src/ks_main.cpp @@ -526,7 +526,7 @@ static void CALLBACK CheckAckStatusTimer(HWND, UINT, UINT_PTR, DWORD) int newStatus = Proto_GetStatus(it->m_szName); int protoFlags = GetStatusFlags(it->m_szName); // ok, np - if (curStatus == ID_STATUS_CURRENT || curStatus == ID_STATUS_DISABLED || curStatus == newStatus || newStatus > MAX_STATUS) + if (curStatus == ID_STATUS_CURRENT || curStatus == ID_STATUS_DISABLED || curStatus == newStatus || newStatus > MAX_STATUS || !protoFlags) continue; if (IsStatusConnecting(newStatus)) { // connecting @@ -539,7 +539,7 @@ static void CALLBACK CheckAckStatusTimer(HWND, UINT, UINT_PTR, DWORD) it->AssignStatus(newStatus); // connection lost - else if (newStatus == ID_STATUS_OFFLINE && protoFlags) {// start checking connection + else if (newStatus == ID_STATUS_OFFLINE) {// start checking connection if (!StartTimer(IDT_CHECKCONN, -1, FALSE)) { /* check if not already checking */ needChecking = true; log_info(0, "KeepStatus: connection lost! (%s)", it->m_szName); -- cgit v1.2.3