Commit bd114a25 authored by Constantin's avatar Constantin

Merge branch 'master' of git.hacksaar.de:hacksaar/haxotel

parents 0450200b 3c0b6901
...@@ -53,6 +53,7 @@ class Player(Thing): ...@@ -53,6 +53,7 @@ class Player(Thing):
assert self.conn == conn, "The player's connection changed?" assert self.conn == conn, "The player's connection changed?"
data = conn.recv(1024) # Should be ready data = conn.recv(1024) # Should be ready
if data: if data:
data = data.replace(b'\r', b'')
self.buffer += data self.buffer += data
pos = self.buffer.find(b'\n') pos = self.buffer.find(b'\n')
while pos >= 0: 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