improved error handling, refs #146 #22

This commit is contained in:
Jakob Ketterl
2020-07-19 19:00:26 +02:00
parent 174e9afa7b
commit c54f19282a
3 changed files with 6 additions and 3 deletions

View File

@ -41,7 +41,10 @@ class Client(ABC):
threading.Thread(target=mp_passthru).start()
def send(self, data):
self.conn.send(data)
try:
self.conn.send(data)
except IOError:
self.close()
def close(self):
self.conn.close()