summaryrefslogtreecommitdiff
path: root/protocols
diff options
context:
space:
mode:
authorRozhuk Ivan <rozhuk.im@gmail.com>2016-06-16 22:55:37 +0000
committerRozhuk Ivan <rozhuk.im@gmail.com>2016-06-16 22:55:37 +0000
commita11bca986d35f6d7eab5faa8f932b40370424704 (patch)
treebb1a909c107254a42ebd69cb9f1a93a2393e6905 /protocols
parent2f30a747ab285281620417f8848f40478d3e1705 (diff)
MRA: timer corrections
git-svn-id: http://svn.miranda-ng.org/main/trunk@16996 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols')
-rw-r--r--protocols/MRA/src/Mra_proto.cpp2
1 files changed, 2 insertions, 0 deletions
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;