diff options
author | George Hazan <ghazan@miranda.im> | 2022-05-12 12:52:03 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2022-05-12 12:52:03 +0300 |
commit | 9afbec637cfb9ebc5096ff84692e85ca6bf0844c (patch) | |
tree | fb2eff2db77316131e5a971d810c0a3d559ec9d2 | |
parent | 84311b23f36c084723e8f42af60fc2c77d4d9a54 (diff) |
fix for unsigned int comparison
-rw-r--r-- | protocols/JabberG/src/jabber_thread.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/protocols/JabberG/src/jabber_thread.cpp b/protocols/JabberG/src/jabber_thread.cpp index 0dbf3a1ba9..cfe2742631 100644 --- a/protocols/JabberG/src/jabber_thread.cpp +++ b/protocols/JabberG/src/jabber_thread.cpp @@ -142,7 +142,7 @@ void CJabberProto::JLoginFailed(int errorCode) void CJabberProto::CheckKeepAlive()
{
if (m_ThreadInfo) {
- if (m_bKeepAlive && ::GetTickCount() - m_ThreadInfo->lastWriteTime < m_iConnectionKeepAliveInterval) {
+ if (m_bKeepAlive && ::GetTickCount() > m_ThreadInfo->lastWriteTime + m_iConnectionKeepAliveInterval) {
if (m_ThreadInfo->jabberServerCaps & JABBER_CAPS_PING) {
CJabberIqInfo *pInfo = AddIQ(&CJabberProto::OnPingReply, JABBER_IQ_TYPE_GET, nullptr, this);
pInfo->SetTimeout(m_iConnectionKeepAliveTimeout);
|