From 784af6cab0bc195c5c53a6f08bd30fda1f15f977 Mon Sep 17 00:00:00 2001 From: Sébastien Dailly Date: Sat, 13 Apr 2024 23:02:00 +0200 Subject: Reconnect quicker after a deconnection --- interfaces/endpoint.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'interfaces') diff --git a/interfaces/endpoint.py b/interfaces/endpoint.py index 5aa369b..15356c2 100755 --- a/interfaces/endpoint.py +++ b/interfaces/endpoint.py @@ -82,7 +82,7 @@ class EndPoint(object): try: received = self.connection.read() except Exception as e: - print(e) + print("fetch error", e) self.state = self.STATE_DISCONNECTED return else: @@ -108,5 +108,5 @@ class EndPoint(object): j = json.dumps( data ) self.connection.write(bytes(j, "utf-8")) except Exception as e: - print(e) + print("send error", e) self.state = self.STATE_DISCONNECTED -- cgit v1.2.3