Commit e195b37
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 e195b37
1 file changed
+11
-10
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 | | |
678 | | - | |
679 | | - | |
680 | | - | |
681 | | - | |
682 | | - | |
683 | | - | |
684 | | - | |
685 | | - | |
| 679 | + | |
| 680 | + | |
| 681 | + | |
| 682 | + | |
| 683 | + | |
| 684 | + | |
| 685 | + | |
| 686 | + | |
686 | 687 | | |
687 | 688 | | |
688 | 689 | | |
| |||
0 commit comments