From 22ad89ed2732daf5e2472376b8a77ed59a7e90f5 Mon Sep 17 00:00:00 2001 From: Hexiro <42787085+Hexiro@users.noreply.github.com> Date: Sun, 20 Jun 2021 19:37:15 -0400 Subject: [PATCH] revert logic change in client --- steam/client/__init__.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/steam/client/__init__.py b/steam/client/__init__.py index 7ed9228..aa83760 100644 --- a/steam/client/__init__.py +++ b/steam/client/__init__.py @@ -297,8 +297,9 @@ class SteamClient(CMClient, BuiltinBase): """ if not self.connected: self._LOG.debug("Trying to send message when not connected. (discarded)") - elif body_params and isinstance(message, MsgProto): - proto_fill_from_dict(message.body, body_params) + else: + if body_params and isinstance(message, MsgProto): + proto_fill_from_dict(message.body, body_params) CMClient.send(self, message)