diff options
author | nagachika <nagachika@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-12-22 13:08:24 +0000 |
---|---|---|
committer | nagachika <nagachika@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-12-22 13:08:24 +0000 |
commit | 920736460b687bfd513e83011d9d0e8617335d0a (patch) | |
tree | 21cfcaa6cbde2df1ce1a46952db4ad2ae0024a95 /cont.c | |
parent | 398581564d155cab50beeb28fbb61fcbb5f4da16 (diff) |
* cont.c (rb_fiber_start): unify conditions.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38556 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'cont.c')
-rw-r--r-- | cont.c | 5 |
1 files changed, 1 insertions, 4 deletions
@@ -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 { |