Browse Source

SteamClient: hold on return from login()

Allows the client to fully login, and won't be kicked off when
it sends a message immediately after login() returns
pull/35/merge
Rossen Georgiev 8 years ago
parent
commit
9ef8e5d952
  1. 4
      steam/client/__init__.py

4
steam/client/__init__.py

@ -516,6 +516,10 @@ class SteamClient(CMClient, BuiltinBase):
self.send(message)
resp = self.wait_msg(EMsg.ClientLogOnResponse, timeout=30)
if resp.body.eresult == EResult.OK:
gevent.sleep(0.5)
return EResult(resp.body.eresult) if resp else EResult.Fail
def anonymous_login(self):

Loading…
Cancel
Save