Skip to content

Commit

Permalink
Fix endless pondering
Browse files Browse the repository at this point in the history
  • Loading branch information
Tearth committed Nov 1, 2024
1 parent fe9ce88 commit 681002d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/engine/context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,7 @@ impl Iterator for SearchContext {
// If ponder flag is set, the search is completly restarted within the same iteration
if self.ponder_flag.load(Ordering::Relaxed) {
self.current_depth = 1;
self.forced_depth = 0;
self.search_time_start = SystemTime::now();
self.stats = SearchStats::default();

Expand Down

0 comments on commit 681002d

Please sign in to comment.