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 return
def spawn(): def spawn():
try:
session = Session(self, sock) session = Session(self, sock)
session.handle() session.handle()
except:
sock.close()
thread = threading.Thread(target=spawn) thread = threading.Thread(target=spawn)
thread.start() thread.start()