Revert remaining remote agent connection changes
This commit is contained in:
parent
32cbaf2ce3
commit
ad24edd2be
|
@ -372,8 +372,7 @@ export class ReconnectionWaitEvent {
|
||||||
public readonly reconnectionToken: string,
|
public readonly reconnectionToken: string,
|
||||||
public readonly millisSinceLastIncomingData: number,
|
public readonly millisSinceLastIncomingData: number,
|
||||||
public readonly durationSeconds: number,
|
public readonly durationSeconds: number,
|
||||||
private readonly cancellableTimer: CancelablePromise<void>,
|
private readonly cancellableTimer: CancelablePromise<void>
|
||||||
public readonly connectionAttempt: number
|
|
||||||
) { }
|
) { }
|
||||||
|
|
||||||
public skipWait(): void {
|
public skipWait(): void {
|
||||||
|
@ -480,7 +479,7 @@ abstract class PersistentConnection extends Disposable {
|
||||||
try {
|
try {
|
||||||
if (waitTime > 0) {
|
if (waitTime > 0) {
|
||||||
const sleepPromise = sleep(waitTime);
|
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...`);
|
this._options.logService.info(`${logPrefix} waiting for ${waitTime} seconds before reconnecting...`);
|
||||||
try {
|
try {
|
||||||
|
|
Loading…
Reference in New Issue