diff options
author | Sébastien Dailly <sebastien@dailly.me> | 2024-04-13 23:02:00 +0200 |
---|---|---|
committer | Sébastien Dailly <sebastien@dailly.me> | 2024-04-14 17:31:03 +0200 |
commit | 784af6cab0bc195c5c53a6f08bd30fda1f15f977 (patch) | |
tree | 9572e897dcc1434fb1b012accf3eb28844d587aa /interfaces | |
parent | 89d3bb2421a42dccd4f159b77e9f7fb103a4f8b8 (diff) |
Reconnect quicker after a deconnection
Diffstat (limited to 'interfaces')
-rwxr-xr-x | interfaces/endpoint.py | 4 |
1 files changed, 2 insertions, 2 deletions
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
|