From 7587d76fd1f0ffd2d0834be85446bd8c6ed4b165 Mon Sep 17 00:00:00 2001 From: "Paul Gauthier (aider)" Date: Fri, 25 Oct 2024 12:59:09 -0700 Subject: [PATCH] refactor: simplify file watcher thread cleanup by removing timeout --- aider/io.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/aider/io.py b/aider/io.py index 78a1060fe..3dfa222da 100644 --- a/aider/io.py +++ b/aider/io.py @@ -458,9 +458,7 @@ class InputOutput: finally: # Clean up the watcher thread stop_event.set() - watcher.join(timeout=1.0) # Wait up to 1 second for thread to finish - if watcher.is_alive(): - self.tool_warning("Warning: File watcher thread did not shut down cleanly") + watcher.join() # Thread should exit quickly due to stop_event if line and line[0] == "{" and not multiline_input: multiline_input = True