update
This commit is contained in:
parent
136b2bed4b
commit
064cf15a35
1 changed files with 3 additions and 1 deletions
|
@ -91,11 +91,12 @@ export default class VM {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
var msg = msgpack.decode(payload) as protocol.ProtocolMessage;
|
var msg = msgpack.decode(payload) as protocol.ProtocolMessage;
|
||||||
|
if (this.#nopTimeout) clearInterval(this.#nopTimeout);
|
||||||
|
this.#nopTimeout = setInterval(() => this.#nopTimeoutFunc(), 5000);
|
||||||
if (!this.isConnectedToVM) {
|
if (!this.isConnectedToVM) {
|
||||||
if (this.#fileQueue.size > 0) this.fileQueueLoop();
|
if (this.#fileQueue.size > 0) this.fileQueueLoop();
|
||||||
this.isConnectedToVM = true;
|
this.isConnectedToVM = true;
|
||||||
this.#noNop = false;
|
this.#noNop = false;
|
||||||
this.#nopTimeout = setInterval(() => this.#nopTimeoutFunc(), 5000);
|
|
||||||
}
|
}
|
||||||
switch (msg.Operation) {
|
switch (msg.Operation) {
|
||||||
case protocol.ProtocolOperation.ACK:
|
case protocol.ProtocolOperation.ACK:
|
||||||
|
@ -114,6 +115,7 @@ export default class VM {
|
||||||
this.#noNop = true;
|
this.#noNop = true;
|
||||||
} else {
|
} else {
|
||||||
this.isConnectedToVM = false;
|
this.isConnectedToVM = false;
|
||||||
|
clearInterval(this.#nopTimeout!);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue