Revert remaining remote agent connection changes

This commit is contained in:
Asher 2021-03-04 10:39:16 -06:00
parent 32cbaf2ce3
commit ad24edd2be
No known key found for this signature in database
GPG Key ID: D63C1EF81242354A
1 changed files with 2 additions and 3 deletions

View File

@ -372,8 +372,7 @@ export class ReconnectionWaitEvent {
public readonly reconnectionToken: string,
public readonly millisSinceLastIncomingData: number,
public readonly durationSeconds: number,
private readonly cancellableTimer: CancelablePromise<void>,
public readonly connectionAttempt: number
private readonly cancellableTimer: CancelablePromise<void>
) { }
public skipWait(): void {
@ -480,7 +479,7 @@ abstract class PersistentConnection extends Disposable {
try {
if (waitTime > 0) {
const sleepPromise = sleep(waitTime);
this._onDidStateChange.fire(new ReconnectionWaitEvent(this.reconnectionToken, this.protocol.getMillisSinceLastIncomingData(), waitTime, sleepPromise, attempt));
this._onDidStateChange.fire(new ReconnectionWaitEvent(this.reconnectionToken, this.protocol.getMillisSinceLastIncomingData(), waitTime, sleepPromise));
this._options.logService.info(`${logPrefix} waiting for ${waitTime} seconds before reconnecting...`);
try {