summaryrefslogtreecommitdiff
path: root/protocols
diff options
context:
space:
mode:
authorRobert Pösel <robyer@seznam.cz>2016-12-25 12:30:32 +0100
committerRobert Pösel <robyer@seznam.cz>2016-12-25 12:30:32 +0100
commit85e0f71e99ead38c01c4ad127b66aafa723ade3c (patch)
tree2224d804ab53238a21c35041d15276167dc40d57 /protocols
parentcd7e3fdb79d91775151cff56de4525343e73cdb4 (diff)
Steam: Fix immediate quit of polling thread (addresses #646)
Diffstat (limited to 'protocols')
-rw-r--r--protocols/Steam/src/steam_login.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/protocols/Steam/src/steam_login.cpp b/protocols/Steam/src/steam_login.cpp
index f399eb0195..e68ffb48cb 100644
--- a/protocols/Steam/src/steam_login.cpp
+++ b/protocols/Steam/src/steam_login.cpp
@@ -395,9 +395,9 @@ void CSteamProto::OnLoggedOn(const HttpResponse *response)
new GetFriendListRequest(token, steamId),
&CSteamProto::OnGotFriendList);
- // start polling thread
- m_hPollingThread = ForkThreadEx(&CSteamProto::PollingThread, 0, NULL);
-
// go to online now
ProtoBroadcastAck(NULL, ACKTYPE_STATUS, ACKRESULT_SUCCESS, (HANDLE)ID_STATUS_CONNECTING, m_iStatus = m_iDesiredStatus);
+
+ // start polling thread
+ m_hPollingThread = ForkThreadEx(&CSteamProto::PollingThread, 0, NULL);
} \ No newline at end of file