Merge pull request #8408 from devLotto/puzzlesolver-npe
client: fix puzzle solver not completing if executor waits before starting solver
This commit is contained in:
@@ -78,7 +78,7 @@ public class PuzzleSolver implements Runnable
|
|||||||
|
|
||||||
public boolean hasExceededWaitDuration()
|
public boolean hasExceededWaitDuration()
|
||||||
{
|
{
|
||||||
return stopwatch.elapsed().compareTo(MAX_WAIT_DURATION) > 0;
|
return stopwatch != null && stopwatch.elapsed().compareTo(MAX_WAIT_DURATION) > 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean hasFailed()
|
public boolean hasFailed()
|
||||||
|
|||||||
Reference in New Issue
Block a user