diff options
author | George Hazan <ghazan@miranda.im> | 2020-02-01 18:17:19 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2020-02-01 18:17:19 +0300 |
commit | 133b067e695bee81189df980c9043fe843d7887e (patch) | |
tree | 76a36435e3d210490a08c59a3c2abe236a16d115 /protocols/Discord | |
parent | 22308a6db6d03337d854810c3245260a19972deb (diff) |
let's make a couple of things simpler
Diffstat (limited to 'protocols/Discord')
-rw-r--r-- | protocols/Discord/src/connection.cpp | 2 | ||||
-rw-r--r-- | protocols/Discord/src/dispatch.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/protocols/Discord/src/connection.cpp b/protocols/Discord/src/connection.cpp index 758d2a05a9..aa11ff9af2 100644 --- a/protocols/Discord/src/connection.cpp +++ b/protocols/Discord/src/connection.cpp @@ -80,7 +80,7 @@ void CDiscordProto::OnLoggedOut() m_bTerminated = true; m_iGatewaySeq = 0; - m_impl.m_heartBeat.Stop(); + m_impl.m_heartBeat.StopSafe(); ProtoBroadcastAck(0, ACKTYPE_STATUS, ACKRESULT_SUCCESS, (HANDLE)m_iStatus, ID_STATUS_OFFLINE); m_iStatus = m_iDesiredStatus = ID_STATUS_OFFLINE; diff --git a/protocols/Discord/src/dispatch.cpp b/protocols/Discord/src/dispatch.cpp index 90d0c6af40..2841b481a4 100644 --- a/protocols/Discord/src/dispatch.cpp +++ b/protocols/Discord/src/dispatch.cpp @@ -550,7 +550,7 @@ void CDiscordProto::OnCommandPresence(const JSONNode &pRoot) void CDiscordProto::OnCommandReady(const JSONNode &pRoot) { GatewaySendHeartbeat(); - m_impl.m_heartBeat.Start(m_iHartbeatInterval); + m_impl.m_heartBeat.StartSafe(m_iHartbeatInterval); m_szGatewaySessionId = pRoot["session_id"].as_mstring(); |