diff --git a/src/VM.ts b/src/VM.ts index 9df794f..870c292 100644 --- a/src/VM.ts +++ b/src/VM.ts @@ -101,11 +101,11 @@ export default class VM { var msg = msgpack.decode(this.#currentChunk!) as protocol.ProtocolMessage; if (this.#nopTimeout) clearTimeout(this.#nopTimeout); this.#nopTimeout = setTimeout(() => this.#nopTimeoutFunc(), 5000); + this.#noNop = false; if (!this.isConnectedToVM) { log("INFO", `Got connection to VM at ${this.#id}`); if (this.#messageQueue.size > 0) this.messageQueueLoop(); this.isConnectedToVM = true; - this.#noNop = false; } switch (msg.Operation) { case protocol.ProtocolOperation.ACK: