Skip to content

Commit

Permalink
Clear cache after backend is created.
Browse files Browse the repository at this point in the history
  • Loading branch information
mooskagh committed Feb 3, 2025
1 parent f0a3dd5 commit 4a67393
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/engine_classic.cc
Original file line number Diff line number Diff line change
Expand Up @@ -181,12 +181,12 @@ void EngineClassic::NewGame() {
// newgame and goes straight into go.
ResetMoveTimer();
SharedLock lock(busy_mutex_);
backend_->ClearCache();
search_.reset();
tree_.reset();
CreateFreshTimeManager();
current_position_ = {ChessBoard::kStartposFen, {}};
UpdateFromUciOptions();
backend_->ClearCache();
}

void EngineClassic::SetPosition(const std::string& fen,
Expand Down

0 comments on commit 4a67393

Please sign in to comment.