Browse Source

CMCLient: emit reconnect when about to reconnect

pull/18/merge
Rossen Georgiev 9 years ago
parent
commit
dc19198e25
  1. 4
      steam/core/cm.py

4
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

Loading…
Cancel
Save