Commit 8aefd5b
committed
Use current thread runtime for shutdown
Previously, we'd use the node's spawned multithread runtime to await the
event handler finishing up. However, this would require a
`block_on`/`block_in_place` dance, the former of which could still end
up locking up if we happen to be out of blocking threads on shutdown.
Here, we instead avoid touching the runtime and use a new current thread
runtime to wait for event handler shutdown.1 parent b914731 commit 8aefd5b
1 file changed
+6
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
643 | 643 | | |
644 | 644 | | |
645 | 645 | | |
646 | | - | |
| 646 | + | |
| 647 | + | |
647 | 648 | | |
648 | | - | |
| 649 | + | |
649 | 650 | | |
650 | 651 | | |
651 | 652 | | |
| |||
675 | 676 | | |
676 | 677 | | |
677 | 678 | | |
| 679 | + | |
| 680 | + | |
678 | 681 | | |
679 | | - | |
| 682 | + | |
680 | 683 | | |
681 | 684 | | |
682 | 685 | | |
| |||
0 commit comments