fix: abort controller before clearing

This commit is contained in:
uinstinct 2025-08-08 12:42:08 +05:30
parent 10401503b6
commit 5b9feccc69

View file

@ -735,6 +735,7 @@ export class CodebaseIndexer {
});
}
if (this.indexingCancellationController === localController) {
this.indexingCancellationController.abort(); // abort before clearing to prevent race condition (multiple starts)
this.indexingCancellationController = undefined;
}
}