From c7f8cfee8cdeb5c6bc1e02705e092259550cb27d Mon Sep 17 00:00:00 2001 From: Nicolas F Date: Sat, 30 Jan 2016 13:58:36 +0100 Subject: [PATCH] rcon: Wait for buffer to fill We should wait for the buffer to fill up to 12 bytes instead of simply assuming it will. Possible fix for #1273. --- overviewer_core/rcon.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/overviewer_core/rcon.py b/overviewer_core/rcon.py index 52a1434..cffe546 100644 --- a/overviewer_core/rcon.py +++ b/overviewer_core/rcon.py @@ -68,7 +68,8 @@ class RConConnection(): if not toread: raise RConException(self.rid, "Request timed out.") - res_len, res_id, res_type = struct.unpack("