зеркало из https://github.com/github/ruby.git
* 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:
Родитель
0df7297f12
Коммит
bb1719875c
|
@ -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>
|
Fri Dec 21 01:21:49 2007 GOTOU Yuuzou <gotoyuzo@notwork.org>
|
||||||
|
|
||||||
* ext/openssl/lib/openssl/ssl.rb (OpenSSL::SSL::SSLContext.build):
|
* ext/openssl/lib/openssl/ssl.rb (OpenSSL::SSL::SSLContext.build):
|
||||||
|
|
|
@ -408,7 +408,7 @@ enumerator_next(VALUE obj)
|
||||||
VALUE curr, v;
|
VALUE curr, v;
|
||||||
curr = rb_fiber_current();
|
curr = rb_fiber_current();
|
||||||
|
|
||||||
if (!e->fib) {
|
if (!e->fib || !rb_fiber_alive_p(e->fib)) {
|
||||||
next_init(obj, e);
|
next_init(obj, e);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче