Browse Source

Add comment regarding waiting for SERVERDATA_AUTH_RESPONSE

pull/7/head 1.3.6
Richard Neumann 4 years ago
parent
commit
14f4198e8c
  1. 2
      rcon/client.py

2
rcon/client.py

@ -74,6 +74,8 @@ class Client:
"""Performs a login."""
response = self.communicate(Packet.make_login(passwd))
# Wait for SERVERDATA_AUTH_RESPONSE according to:
# https://developer.valvesoftware.com/wiki/Source_RCON_Protocol
while response.type != Type.SERVERDATA_AUTH_RESPONSE:
response = self.read()

Loading…
Cancel
Save