Commit b206c78
committed
only check if thread is alive after cancelling it (#279)
it appears that in some cases, especially under high load, calling
`.cancel()` will immediately stop the thread, making the `.join()` call
fail. To avoid this, we first `cancel()`, then check `is_alive()` and
only _then_ `join()` the thread.
fixes #276
closes #2791 parent 467d112 commit b206c78
2 files changed
+4
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
318 | 318 | | |
319 | 319 | | |
320 | 320 | | |
321 | | - | |
| 321 | + | |
322 | 322 | | |
323 | | - | |
| 323 | + | |
| 324 | + | |
324 | 325 | | |
325 | 326 | | |
326 | 327 | | |
| |||
0 commit comments