Skip to content

Commit

Permalink
revert logic change in client
Browse files Browse the repository at this point in the history
  • Loading branch information
hexiro committed Jun 20, 2021
1 parent dcc51f1 commit 3de9f22
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions steam/client/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -297,8 +297,9 @@ def send(self, message, body_params=None):
"""
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)

Expand Down

0 comments on commit 3de9f22

Please sign in to comment.