mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* enumerator.c (enumerator_next): should call next_init() if fiber
is dead already. [ruby-dev:32459] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14374 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
0df7297f12
commit
bb1719875c
2 changed files with 6 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
Fri Dec 21 08:07:35 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||
|
||||
* enumerator.c (enumerator_next): should call next_init() if fiber
|
||||
is dead already. [ruby-dev:32459]
|
||||
|
||||
Fri Dec 21 01:21:49 2007 GOTOU Yuuzou <gotoyuzo@notwork.org>
|
||||
|
||||
* ext/openssl/lib/openssl/ssl.rb (OpenSSL::SSL::SSLContext.build):
|
||||
|
|
|
@ -408,7 +408,7 @@ enumerator_next(VALUE obj)
|
|||
VALUE curr, v;
|
||||
curr = rb_fiber_current();
|
||||
|
||||
if (!e->fib) {
|
||||
if (!e->fib || !rb_fiber_alive_p(e->fib)) {
|
||||
next_init(obj, e);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue