Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

βŒ› Check _searchCancellationTokenSource in qsearch as well #454

Merged
merged 6 commits into from
Oct 23, 2023
Merged
2 changes: 1 addition & 1 deletion src/Lynx/Search/NegaMax.cs
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,7 @@ public int QuiescenceSearch(int ply, int alpha, int beta)
var position = Game.CurrentPosition;

_absoluteSearchCancellationTokenSource.Token.ThrowIfCancellationRequested();
//_searchCancellationTokenSource.Token.ThrowIfCancellationRequested();
_searchCancellationTokenSource.Token.ThrowIfCancellationRequested();

if (ply >= Configuration.EngineSettings.MaxDepth)
{
Expand Down