From 24c5e11707ea8d374463fb2de4446ffb499b1f0e Mon Sep 17 00:00:00 2001 From: eug-vs Date: Sun, 21 Jan 2024 07:50:04 +0100 Subject: fix: remove side-effects when halting search --- src/grossmeister/search.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } } -- cgit v1.2.3