summaryrefslogtreecommitdiff
path: root/protocols/Steam/src/steam_proto.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/Steam/src/steam_proto.cpp')
-rw-r--r--protocols/Steam/src/steam_proto.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/protocols/Steam/src/steam_proto.cpp b/protocols/Steam/src/steam_proto.cpp
index 9d39d7e907..c93951749f 100644
--- a/protocols/Steam/src/steam_proto.cpp
+++ b/protocols/Steam/src/steam_proto.cpp
@@ -259,6 +259,9 @@ int CSteamProto::SetStatus(int new_status)
if (!Miranda_IsTerminated())
SetAllContactStatuses(ID_STATUS_OFFLINE);
+ if (IsOnline())
+ SendLogout();
+
Logout();
}
else if (m_ws == nullptr && !IsStatusConnecting(m_iStatus)) {