From 534c19e1a1b37fe38d179671b48c39111b289e1c Mon Sep 17 00:00:00 2001 From: Richard Neumann Date: Mon, 14 Feb 2022 11:59:43 +0100 Subject: [PATCH] Fix data reading --- rcon/battleye/client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rcon/battleye/client.py b/rcon/battleye/client.py index bb83c8b..6dcd01e 100644 --- a/rcon/battleye/client.py +++ b/rcon/battleye/client.py @@ -44,7 +44,7 @@ class Client(BaseClient, socket_type=SOCK_DGRAM): """Receives a packet.""" return RESPONSE_TYPES[ (header := Header.from_bytes( - data := self._socket.recv(max_length)[:8] + (data := self._socket.recv(max_length))[:8] )).type ].from_bytes(header, data[8:])