mirror of
https://github.com/Chia-Network/chia-blockchain.git
synced 2024-11-13 03:12:24 +03:00
timelord catch exception on decode
This commit is contained in:
parent
f5041ca770
commit
5f8e10691d
@ -261,7 +261,14 @@ class Timelord:
|
||||
self.done_discriminants.append(challenge_hash)
|
||||
break
|
||||
|
||||
if data.decode() == "STOP":
|
||||
msg = ""
|
||||
try:
|
||||
msg = data.decode()
|
||||
except Exception as e:
|
||||
log.error(f"Exception while decoding data {e}")
|
||||
pass
|
||||
|
||||
if msg == "STOP":
|
||||
log.info(f"Stopped client running on ip {ip}.")
|
||||
async with self.lock:
|
||||
writer.write(b"ACK")
|
||||
|
Loading…
Reference in New Issue
Block a user