Rename internal ConnectionState attribute to have an underscore.

Some people like to use that variable name apparently.

See #568 and #569.
This commit is contained in:
Rapptz
2017-05-16 20:20:39 -04:00
parent 9cbbd8af65
commit df90aaa610
3 changed files with 34 additions and 34 deletions

View File

@ -195,15 +195,15 @@ class DiscordWebSocket(websockets.client.WebSocketClientProtocol):
# dynamically add attributes needed
ws.token = client.http.token
ws._connection = client.connection
ws._connection = client._connection
ws._dispatch = client.dispatch
ws.gateway = gateway
ws.shard_id = shard_id
ws.shard_count = client.connection.shard_count
ws.shard_count = client._connection.shard_count
ws.session_id = session
ws.sequence = sequence
client.connection._update_references(ws)
client._connection._update_references(ws)
log.info('Created websocket connected to {}'.format(gateway))