From d0ccab85ec1bfd12a69df41c40710f54faa0a295 Mon Sep 17 00:00:00 2001 From: Your Name Date: Fri, 16 Feb 2024 18:44:54 -0600 Subject: [PATCH] wip --- common/watcher.py | 1 + 1 file changed, 1 insertion(+) diff --git a/common/watcher.py b/common/watcher.py index 1a943a6..218e345 100644 --- a/common/watcher.py +++ b/common/watcher.py @@ -24,6 +24,7 @@ class Watcher: try: watcher_sock.sendall(message_json.encode('utf-8') + b'\n') except socket.error: + nothing=False # Handle potential error in sending (e.g., if connection was lost) watcher_sock.close() # Close the current socket to clean up resources watcher_sock = None # Reset sock to ensure reconnection attempt on next call