Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The "Region.findAnyCollect" method maybe cause an endless loop #614

Open
ParadiseWitch opened this issue Jan 27, 2024 · 0 comments
Open
Assignees
Labels
bug possible might be a bug - is currently evaluated
Milestone

Comments

@ParadiseWitch
Copy link

If these these lines of the SubFindRun class threw an exception:

rfArray[subN] = reg.existsStoppableInit(target);
mArray[subN] = reg.doExists(rfArray[subN], waitTime);

then the "hasFinished" method never be call.
wouldn't that cause an endless loop of these lines of code in the findAnyCollect method here?
while (!any) {
any = false;
for (SubFindRun sub : theSubs) {
if (sub.hasFinished()) {
any = true;
break;
}
}
}

@RaiMan RaiMan self-assigned this Feb 11, 2024
@RaiMan RaiMan added the bug possible might be a bug - is currently evaluated label Feb 11, 2024
@RaiMan RaiMan added this to the 2.0.6 milestone Feb 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug possible might be a bug - is currently evaluated
Projects
None yet
Development

No branches or pull requests

2 participants