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:
|
finally:
|
||||||
# Clean up the watcher thread
|
# Clean up the watcher thread
|
||||||
stop_event.set()
|
stop_event.set()
|
||||||
watcher.join(timeout=1.0) # Wait up to 1 second for thread to finish
|
watcher.join() # Thread should exit quickly due to stop_event
|
||||||
if watcher.is_alive():
|
|
||||||
self.tool_warning("Warning: File watcher thread did not shut down cleanly")
|
|
||||||
|
|
||||||
if line and line[0] == "{" and not multiline_input:
|
if line and line[0] == "{" and not multiline_input:
|
||||||
multiline_input = True
|
multiline_input = True
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue