From 14f4198e8c89113263306d47ad12632ce359cfde Mon Sep 17 00:00:00 2001 From: Richard Neumann Date: Sat, 19 Jun 2021 17:07:16 +0200 Subject: [PATCH] Add comment regarding waiting for SERVERDATA_AUTH_RESPONSE --- rcon/client.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/rcon/client.py b/rcon/client.py index 81a90b3..5433932 100644 --- a/rcon/client.py +++ b/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()