Commit 7dfaf1a
fix(scrapy): Close AsyncThread on scheduler open() failure (#820)
## Summary
- Close `AsyncThread` in the `except` block of `ApifyScheduler.open()` before re-raising, preventing a thread leak when `open_rq()` fails (Scrapy only calls `close()` after a successful `open()`).
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>1 parent 75e4c04 commit 7dfaf1a
1 file changed
+1
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
| 64 | + | |
64 | 65 | | |
65 | 66 | | |
66 | 67 | | |
| |||
0 commit comments