diff options
author | eug-vs <eugene@eug-vs.xyz> | 2024-01-21 07:50:04 +0100 |
---|---|---|
committer | eug-vs <eugene@eug-vs.xyz> | 2024-01-21 07:50:04 +0100 |
commit | 24c5e11707ea8d374463fb2de4446ffb499b1f0e (patch) | |
tree | 739a35afee5650fb51d9237cb7e25e5b99a02626 /src/grossmeister/search.rs | |
parent | 8a8542a84c2b69f19b3c28fd1a95af1bd05b2fb6 (diff) | |
download | chessnost-24c5e11707ea8d374463fb2de4446ffb499b1f0e.tar.gz |
fix: remove side-effects when halting search
Diffstat (limited to 'src/grossmeister/search.rs')
-rw-r--r-- | src/grossmeister/search.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/grossmeister/search.rs b/src/grossmeister/search.rs index 2491d1f..1e7cf5f 100644 --- a/src/grossmeister/search.rs +++ b/src/grossmeister/search.rs @@ -146,7 +146,7 @@ impl Grossmeister { // Could not finish in time, return what we have so far if root_distance > 0 && self.should_halt.load(std::sync::atomic::Ordering::SeqCst) { - break; + return alpha; } } |