Do actually handle errors, close socket

This commit is contained in:
XANTRONIX 2025-04-09 20:11:49 -04:00
parent ab02e49807
commit 4d953d477c

View file

@ -41,8 +41,11 @@ class Server():
return
def spawn():
session = Session(self, sock)
session.handle()
try:
session = Session(self, sock)
session.handle()
except:
sock.close()
thread = threading.Thread(target=spawn)
thread.start()