Skip to content

Commit

Permalink
Fix Fiber.isAssociated() implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
Gene Gleyzer committed Jul 11, 2023
1 parent 63ef22c commit f2b2abd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion javatools/src/main/java/org/xvm/runtime/Fiber.java
Expand Up @@ -136,7 +136,8 @@ public boolean isAssociated(Fiber that)
Fiber fiberCaller = this.f_fiberCaller;
if (fiberCaller == null)
{
return false;
fiberCaller = that.f_fiberCaller;
return fiberCaller != null && this.isAssociated(fiberCaller);
}

// by switching the target to "that" we alternate the descending checks:
Expand Down

0 comments on commit f2b2abd

Please sign in to comment.