Skip to content

Commit 12eafca

Browse files
Release v1.37.2
1 parent 94a8689 commit 12eafca

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

cli-common/remote-mgmt-service.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -636,7 +636,10 @@ export class RemoteMgmt extends (EventEmitter as new () => TypedEmitter<{
636636

637637
this._ws.on('close', () => {
638638
console.log(TCP_PREFIX, 'Trying to connect in 1 second...');
639-
setTimeout(this.connect.bind(this), 1000);
639+
setTimeout(() => {
640+
// eslint-disable-next-line @typescript-eslint/no-floating-promises
641+
this.connect(true, this._inferenceInfo);
642+
}, 1000);
640643
if (this._ws) {
641644
this._ws.removeAllListeners();
642645
}

0 commit comments

Comments
 (0)