aboutsummaryrefslogtreecommitdiff
path: root/src/grossmeister/search.rs
diff options
context:
space:
mode:
authoreug-vs <eugene@eug-vs.xyz>2024-01-21 07:50:04 +0100
committereug-vs <eugene@eug-vs.xyz>2024-01-21 07:50:04 +0100
commit24c5e11707ea8d374463fb2de4446ffb499b1f0e (patch)
tree739a35afee5650fb51d9237cb7e25e5b99a02626 /src/grossmeister/search.rs
parent8a8542a84c2b69f19b3c28fd1a95af1bd05b2fb6 (diff)
downloadchessnost-24c5e11707ea8d374463fb2de4446ffb499b1f0e.tar.gz
fix: remove side-effects when halting search
Diffstat (limited to 'src/grossmeister/search.rs')
-rw-r--r--src/grossmeister/search.rs2
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;
}
}