diff --git a/core/src/main/java/org/jruby/RubyThread.java b/core/src/main/java/org/jruby/RubyThread.java index f6b1f6b5a25..96a93cad1d3 100644 --- a/core/src/main/java/org/jruby/RubyThread.java +++ b/core/src/main/java/org/jruby/RubyThread.java @@ -886,7 +886,7 @@ public static IRubyObject pending_interrupt_p_s(ThreadContext context, IRubyObje @JRubyMethod(name = "pending_interrupt?") public IRubyObject pending_interrupt_p(ThreadContext context) { - return RubyBoolean.newBoolean(context, pendingInterruptQueue.isEmpty()); + return RubyBoolean.newBoolean(context, !pendingInterruptQueue.isEmpty()); } @JRubyMethod(name = "pending_interrupt?")