Ignore BrokenPipeError

This commit is contained in:
XANTRONIX Development 2024-11-28 07:36:41 -05:00
parent 1bb3c21122
commit 6038746439

View file

@ -714,8 +714,11 @@ class Session():
def handle(self): def handle(self):
self.greet() self.greet()
while self.state & SessionState.ACTIVE: try:
self.handle_command() while self.state & SessionState.ACTIVE:
self.flush() self.handle_command()
self.flush()
self.sock.close() self.sock.close()
except BrokenPipeError:
pass