diff options
author | George Hazan <george.hazan@gmail.com> | 2025-02-21 12:21:04 +0200 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2025-02-21 12:21:04 +0200 |
commit | 34a9256c77e5e7db6e62d6897a307c28038d7c7a (patch) | |
tree | 9489efb8f7c627ac1346666aa5ea795ad540d706 /plugins/StatusManager/src/ks_main.cpp | |
parent | 4f9882b2417a7bdb1d1c80cf2288ddecb8644839 (diff) |
KeepStatus: minor fix for Dummy accounts
Diffstat (limited to 'plugins/StatusManager/src/ks_main.cpp')
-rw-r--r-- | plugins/StatusManager/src/ks_main.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/StatusManager/src/ks_main.cpp b/plugins/StatusManager/src/ks_main.cpp index 1fffb2c7fc..88ddf97408 100644 --- a/plugins/StatusManager/src/ks_main.cpp +++ b/plugins/StatusManager/src/ks_main.cpp @@ -524,6 +524,7 @@ static void CALLBACK CheckAckStatusTimer(HWND, UINT, UINT_PTR, DWORD) for (auto &it : protoList) { int curStatus = it->GetStatus(); 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) continue; @@ -538,7 +539,7 @@ static void CALLBACK CheckAckStatusTimer(HWND, UINT, UINT_PTR, DWORD) it->AssignStatus(newStatus); // connection lost - else if (newStatus == ID_STATUS_OFFLINE) {// start checking connection + else if (newStatus == ID_STATUS_OFFLINE && protoFlags) {// 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); |