From df62a995b53da706baead60bcdd970ca238ed542 Mon Sep 17 00:00:00 2001 From: Paul Tagliamonte Date: Tue, 21 May 2024 14:52:14 -0400 Subject: [PATCH] Reset data channel seq every connect (closes #336) (#2431) Reset inSequence back to 1 every time we connect to the Engine, otherwise we'll continue to think the current sequence is a high number (while the engine has no memory of the last session -- and may even be a new engine instance!) and ignore messages until we pass that counter again. Signed-off-by: Paul Tagliamonte --- src/lang/std/engineConnection.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lang/std/engineConnection.ts b/src/lang/std/engineConnection.ts index aa531b7ef..0d0b89785 100644 --- a/src/lang/std/engineConnection.ts +++ b/src/lang/std/engineConnection.ts @@ -551,6 +551,7 @@ class EngineConnection { // Everything is now connected. this.state = { type: EngineConnectionStateType.ConnectionEstablished } + this.engineCommandManager.inSequence = 1 this.onEngineConnectionOpen(this) })