diff options
author | George Hazan <ghazan@miranda.im> | 2020-01-03 16:55:12 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2020-01-03 16:55:12 +0300 |
commit | d87186978ec3448eacc8eed94efc35ae1c67bfba (patch) | |
tree | 83e34610db52bf8506d343e128718ca553134c26 /protocols/Discord/src/connection.cpp | |
parent | 8c720cdc163a236761442b27b1093861becebea7 (diff) |
Discord to use system window to maintain its timers
Diffstat (limited to 'protocols/Discord/src/connection.cpp')
-rw-r--r-- | protocols/Discord/src/connection.cpp | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/protocols/Discord/src/connection.cpp b/protocols/Discord/src/connection.cpp index 1ffa407a36..758d2a05a9 100644 --- a/protocols/Discord/src/connection.cpp +++ b/protocols/Discord/src/connection.cpp @@ -73,11 +73,6 @@ void CDiscordProto::OnLoggedIn() ForkThread(&CDiscordProto::GatewayThread, nullptr); } -static void __stdcall sttKillTimer(void *param) -{ - KillTimer(g_hwndHeartbeat, (UINT_PTR)param); -} - void CDiscordProto::OnLoggedOut() { debugLogA("CDiscordProto::OnLoggedOut"); @@ -85,7 +80,7 @@ void CDiscordProto::OnLoggedOut() m_bTerminated = true; m_iGatewaySeq = 0; - CallFunctionAsync(sttKillTimer, this); + m_impl.m_heartBeat.Stop(); ProtoBroadcastAck(0, ACKTYPE_STATUS, ACKRESULT_SUCCESS, (HANDLE)m_iStatus, ID_STATUS_OFFLINE); m_iStatus = m_iDesiredStatus = ID_STATUS_OFFLINE; |