summaryrefslogtreecommitdiff
path: root/protocols
diff options
context:
space:
mode:
Diffstat (limited to 'protocols')
-rw-r--r--protocols/Discord/src/proto.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/protocols/Discord/src/proto.cpp b/protocols/Discord/src/proto.cpp
index 210d649d00..48b496db7d 100644
--- a/protocols/Discord/src/proto.cpp
+++ b/protocols/Discord/src/proto.cpp
@@ -241,10 +241,11 @@ int CDiscordProto::SetStatus(int iNewStatus)
// go offline
if (iNewStatus == ID_STATUS_OFFLINE) {
- if (m_bOnline) {
+ if (m_bOnline)
SetServerStatus(ID_STATUS_OFFLINE);
- ShutdownSession();
- }
+
+ ShutdownSession();
+
m_iStatus = m_iDesiredStatus;
setAllContactStatuses(ID_STATUS_OFFLINE, false);