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: #34362Fixes: #27261 Reviewed-By: Gus Caplan <[email protected]> Reviewed-By: Joyee Cheung <[email protected]> Reviewed-By: James M Snell <[email protected]>1 parent 4d027b7 commit a1da012
1 file changed
+6
-1
lines changed| 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