Skip to content

Commit

Permalink
client: ensure we wait for loginkey on first login
Browse files Browse the repository at this point in the history
  • Loading branch information
rossengeorgiev committed Dec 23, 2020
1 parent c2b36ad commit bed3702
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions steamctl/clients.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,10 @@ def login_from_args(self, args, print_status=True):
lastFile.write_text(self.username)

self._LOG.debug("Login result is: %s", repr(EResult(result)))

if not self.relogin_available:
self.wait_event(self.EVENT_NEW_LOGIN_KEY, timeout=10)

return result


Expand Down

0 comments on commit bed3702

Please sign in to comment.