diff options
author | Rozhuk Ivan <rozhuk.im@gmail.com> | 2016-06-16 22:55:37 +0000 |
---|---|---|
committer | Rozhuk Ivan <rozhuk.im@gmail.com> | 2016-06-16 22:55:37 +0000 |
commit | a11bca986d35f6d7eab5faa8f932b40370424704 (patch) | |
tree | bb1a909c107254a42ebd69cb9f1a93a2393e6905 /protocols/MRA/src | |
parent | 2f30a747ab285281620417f8848f40478d3e1705 (diff) |
MRA: timer corrections
git-svn-id: http://svn.miranda-ng.org/main/trunk@16996 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/MRA/src')
-rw-r--r-- | protocols/MRA/src/Mra_proto.cpp | 2 |
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;
|