Commit 8120c09f authored by Ralf's avatar Ralf
Browse files

filter out \r

parent bdb27958
......@@ -53,6 +53,7 @@ class Player(Thing):
assert self.conn == conn, "The player's connection changed?"
data = conn.recv(1024) # Should be ready
if data:
data = data.replace(b'\r', b'')
self.buffer += data
pos = self.buffer.find(b'\n')
while pos >= 0:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment