summaryrefslogtreecommitdiff
path: root/cont.c
diff options
context:
space:
mode:
Diffstat (limited to 'cont.c')
-rw-r--r--cont.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/cont.c b/cont.c
index 8521a07d76..1f4c2cfde0 100644
--- a/cont.c
+++ b/cont.c
@@ -1161,10 +1161,7 @@ rb_fiber_start(void)
TH_POP_TAG();
if (state) {
- if (state == TAG_RAISE) {
- rb_threadptr_async_errinfo_enque(th, th->errinfo);
- }
- else if (state == TAG_FATAL) {
+ if (state == TAG_RAISE || state == TAG_FATAL) {
rb_threadptr_async_errinfo_enque(th, th->errinfo);
}
else {