diff options
-rw-r--r-- | src/grossmeister/UCI.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/grossmeister/UCI.rs b/src/grossmeister/UCI.rs index 1bd5f92..2351b2f 100644 --- a/src/grossmeister/UCI.rs +++ b/src/grossmeister/UCI.rs @@ -99,8 +99,9 @@ impl Grossmeister { // Join to the current pondering search if let Some(hand) = search_handle.take() { - hand.join().unwrap(); + let better_self = hand.join().unwrap(); halt_scheduled.store(false, Ordering::SeqCst); // Cancel scheduled halting + self.transposition_table = better_self.transposition_table; } else { panic!("Search thread not found!"); } |