From a11bca986d35f6d7eab5faa8f932b40370424704 Mon Sep 17 00:00:00 2001 From: Rozhuk Ivan Date: Thu, 16 Jun 2016 22:55:37 +0000 Subject: MRA: timer corrections git-svn-id: http://svn.miranda-ng.org/main/trunk@16996 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/MRA/src/Mra_proto.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'protocols/MRA') diff --git a/protocols/MRA/src/Mra_proto.cpp b/protocols/MRA/src/Mra_proto.cpp index 7ad1e79e70..81136709ed 100644 --- a/protocols/MRA/src/Mra_proto.cpp +++ b/protocols/MRA/src/Mra_proto.cpp @@ -235,6 +235,8 @@ DWORD CMraProto::MraNetworkDispatcher() nls.dwTimeout = (m_dwPingPeriod * 1000); m_dwNextPingSendTickTime = (m_dwThreadWorkerLastPingTime + nls.dwTimeout); MraSendCMD(MRIM_CS_PING, NULL, 0); + } else { + nls.dwTimeout = (m_dwNextPingSendTickTime - m_dwThreadWorkerLastPingTime); } { /* Remove old items from send queue. */ DWORD dwCmdNum, dwFlags, dwAckType; -- cgit v1.2.3