mirror of
https://github.com/peterosterlund2/droidfish.git
synced 2025-12-12 17:12:40 +01:00
DroidFish: Small improvement in engine input handling.
This commit is contained in:
@@ -1018,13 +1018,12 @@ public class DroidComputerPlayer {
|
|||||||
if (Thread.currentThread().isInterrupted())
|
if (Thread.currentThread().isInterrupted())
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
if ((searchRequest == null) || (searchRequest.currPos == null))
|
||||||
|
return;
|
||||||
|
|
||||||
long now = System.currentTimeMillis();
|
long now = System.currentTimeMillis();
|
||||||
if (now < lastGUIUpdate + guiUpdateInterval)
|
if (now < lastGUIUpdate + guiUpdateInterval)
|
||||||
return;
|
return;
|
||||||
lastGUIUpdate = now;
|
|
||||||
|
|
||||||
if ((searchRequest == null) || (searchRequest.currPos == null))
|
|
||||||
return;
|
|
||||||
|
|
||||||
int id = engineState.searchId;
|
int id = engineState.searchId;
|
||||||
if (depthModified) {
|
if (depthModified) {
|
||||||
|
|||||||
Reference in New Issue
Block a user