Browse Source

fix reset_attribute sometimes raising AttributeError

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

25
steam/core/cm.py

@ -116,19 +116,18 @@ class CMClient(EventEmitter):
self.emit('disconnected')
def _reset_attributes(self):
del self.current_server_addr
del self.connected
del self.channel_secured
del self.key
del self.hmac_secret
del self.steam_id
del self.session_id
del self.webapi_authenticate_user_nonce
del self._recv_loop
del self._heartbeat_loop
for name in ['current_server_addr',
'connected',
'channel_secured',
'key',
'hmac_secret',
'steam_id',
'session_id',
'webapi_authenticate_user_nonce',
'_recv_loop',
'_heartbeat_loop',
]:
self.__dict__.pop(name, None)
def send_message(self, message):
"""

Loading…
Cancel
Save