break on connection failure

This commit is contained in:
Yannik Schmidt
2019-02-06 18:33:51 +01:00
parent ca05fdd632
commit a5f1a1aa6a

View File

@@ -20,6 +20,9 @@ def t_listen(conn):
while True:
try:
data = conn.recv(BUFFER_SIZE).decode('utf-8')
# data is only None if the connection is seperated
if not data:
break
ret = NetworkParser.handleInput(data)
if not ret:
ret = "Rating Backend Error"