Browse Source

Avoids calling dispose after cancel

main
Eric Amodio 1 year ago
parent
commit
78e4c30c73
2 changed files with 0 additions and 3 deletions
  1. +0
    -2
      src/plus/gk/authenticationConnection.ts
  2. +0
    -1
      src/plus/webviews/graph/graphWebview.ts

+ 0
- 2
src/plus/gk/authenticationConnection.ts View File

@ -94,7 +94,6 @@ export class AuthenticationConnection implements Disposable {
if (this._cancellationSource != null) {
this._cancellationSource.cancel();
this._cancellationSource.dispose();
this._cancellationSource = undefined;
}
@ -112,7 +111,6 @@ export class AuthenticationConnection implements Disposable {
new Promise<string>((_, reject) => setTimeout(reject, 120000, 'Cancelled')),
]).finally(() => {
this._cancellationSource?.cancel();
this._cancellationSource?.dispose();
this._cancellationSource = undefined;
this._pendingStates.delete(scopeKey);

+ 0
- 1
src/plus/webviews/graph/graphWebview.ts View File

@ -1071,7 +1071,6 @@ export class GraphWebviewProvider implements WebviewProvider {
if (this._searchCancellation != null) {
this._searchCancellation.cancel();
this._searchCancellation.dispose();
}
const cancellation = new CancellationTokenSource();

Loading…
Cancel
Save