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:
Adam
2019-04-09 12:40:25 -04:00
committed by GitHub

View File

@@ -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()