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):
self.greet()
try:
while self.state & SessionState.ACTIVE:
self.handle_command()
self.flush()
self.sock.close()
except BrokenPipeError:
pass