Commit a1da012
src: do not crash if ToggleAsyncHook fails during termination
In the termination case, we should not crash. There’s also no harm
being done by ignoring the termination exception here, since the
thread is about to be torn down anyway.
Also, add a guard against running this during shutdown. That is the
likely cause of #34361.
Fixes: #34361
PR-URL: #34362
Fixes: #27261
Reviewed-By: Gus Caplan <me@gus.host>
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>1 parent 4d027b7 commit a1da012Copy full SHA for a1da012
File tree
Expand file treeCollapse file tree
1 file changed
+6
-1
lines changedOpen diff view settings
Filter options
- src
Expand file treeCollapse file tree
1 file changed
+6
-1
lines changedOpen diff view settings
Collapse file
+6-1Lines changed: 6 additions & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
928 | 928 | |
929 | 929 | |
930 | 930 | |
| 931 | + |
| 932 | + |
| 933 | + |
| 934 | + |
| 935 | + |
931 | 936 | |
932 | 937 | |
933 | 938 | |
934 | 939 | |
935 | 940 | |
936 | 941 | |
937 | | - |
| 942 | + |
938 | 943 | |
939 | 944 | |
940 | 945 | |
|
0 commit comments