diff --git a/steam/core/cm.py b/steam/core/cm.py index 02e68d5..3dd22b3 100644 --- a/steam/core/cm.py +++ b/steam/core/cm.py @@ -85,10 +85,12 @@ class CMClient(EventEmitter): self._recv_loop.kill() self._init_attributes() - self.emit('disconnected') if reconnect: + self.emit('reconnect') gevent.spawn(self.connect) + else: + self.emit('disconnected') def _init_attributes(self): self.current_server_addr = None