mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-01 02:05:00 +00:00
refactor: simplify file watcher thread cleanup by removing timeout
This commit is contained in:
parent
8e81300f37
commit
7587d76fd1
1 changed files with 1 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue