Skip to content

Fix daemon thread, is_same_loop detection, and run_threadsafe timeout…#4

Open
nerod10 wants to merge 1 commit into3mora2:mainfrom
nerod10:main
Open

Fix daemon thread, is_same_loop detection, and run_threadsafe timeout…#4
nerod10 wants to merge 1 commit into3mora2:mainfrom
nerod10:main

Conversation

@nerod10
Copy link
Copy Markdown

@nerod10 nerod10 commented Apr 13, 2026

… handling

  • Set browser thread as daemon=True so it doesn't block process exit
  • Replace get_event_loop() with get_running_loop() for correct same-loop detection
  • Always signal completion event in finally block to prevent deadlock on task failure
  • Raise TimeoutError and cancel task when run_threadsafe exceeds timeout

… handling

- Set browser thread as daemon=True so it doesn't block process exit
- Replace get_event_loop() with get_running_loop() for correct same-loop detection
- Always signal completion event in finally block to prevent deadlock on task failure
- Raise TimeoutError and cancel task when run_threadsafe exceeds timeout

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant