mirror of
https://github.com/FAUSheppy/skillbird
synced 2025-12-07 15:21:35 +01:00
break on connection failure
This commit is contained in:
@@ -20,6 +20,9 @@ def t_listen(conn):
|
|||||||
while True:
|
while True:
|
||||||
try:
|
try:
|
||||||
data = conn.recv(BUFFER_SIZE).decode('utf-8')
|
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)
|
ret = NetworkParser.handleInput(data)
|
||||||
if not ret:
|
if not ret:
|
||||||
ret = "Rating Backend Error"
|
ret = "Rating Backend Error"
|
||||||
|
|||||||
Reference in New Issue
Block a user