mirror of
https://github.com/microsoft/vscode.git
synced 2026-07-10 16:49:36 +01:00
double cancel dummy cancellation token
This commit is contained in:
@@ -84,8 +84,10 @@ export class CancellationTokenSource {
|
||||
// cancelled token when cancellation happens
|
||||
// before someone asks for the token
|
||||
this._token = CancellationToken.Cancelled;
|
||||
} else {
|
||||
(<MutableToken>this._token).cancel();
|
||||
|
||||
} else if (this._token instanceof MutableToken) {
|
||||
// actually cancel
|
||||
this._token.cancel();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user