fix: abort controller before clearing
This commit is contained in:
parent
10401503b6
commit
5b9feccc69
1 changed files with 1 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue