From 1a69f730c1b28ee322c2257a3446933467be5dea Mon Sep 17 00:00:00 2001 From: philippj Date: Wed, 27 Feb 2019 18:36:29 +0100 Subject: [PATCH] Updated cell_id set position Moved cell_id position, so it is set before logged on even is being emitted. --- steam/client/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/steam/client/__init__.py b/steam/client/__init__.py index 75a6c2e..e520579 100644 --- a/steam/client/__init__.py +++ b/steam/client/__init__.py @@ -173,8 +173,8 @@ class SteamClient(CMClient, BuiltinBase): if result == EResult.OK: self._reconnect_backoff_c = 0 self.logged_on = True - self.emit(self.EVENT_LOGGED_ON) self.cell_id = msg.body.cell_id + self.emit(self.EVENT_LOGGED_ON) return # CM kills the connection on error anyway