From 9afbec637cfb9ebc5096ff84692e85ca6bf0844c Mon Sep 17 00:00:00 2001 From: George Hazan Date: Thu, 12 May 2022 12:52:03 +0300 Subject: fix for unsigned int comparison --- protocols/JabberG/src/jabber_thread.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'protocols') 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); -- cgit v1.2.3