Skip to content

Commit

Permalink
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/src/main/java/org/jruby/RubyThreadGroup.java
Original file line number Diff line number Diff line change
@@ -145,14 +145,14 @@ public IRubyObject enclosed_p(Block block) {
@JRubyMethod
public IRubyObject list(Block block) {
RubyArray ary = RubyArray.newArray(getRuntime());
synchronized (ary) {
synchronized (rubyThreadList) {
for (RubyThread thread : rubyThreadList) {
if (thread != null) {
ary.append(thread);
}
}
return ary;
}
return ary;
}

private RubyThreadGroup(Ruby runtime, RubyClass type) {

0 comments on commit d99bfd9

Please sign in to comment.