Skip to content

Commit

Permalink
Move initial queue pop into try to handle init exceptions.
Browse files Browse the repository at this point in the history
Fixes #2773.
  • Loading branch information
headius committed Mar 29, 2015
1 parent f8c218c commit f7017dc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/src/main/java/org/jruby/ext/fiber/ThreadFiber.java
Expand Up @@ -210,10 +210,10 @@ public void run() {
context.setFiber(data.fiber.get());
context.setRootThread(data.parent);
fiberThread.set(context.getThread());

IRubyObject init = data.queue.pop(context);

try {
IRubyObject init = data.queue.pop(context);

try {
IRubyObject result;

Expand Down

0 comments on commit f7017dc

Please sign in to comment.