From a1e57cab8cf439537d7e38933042d216754180b8 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Sun, 14 Feb 2021 18:32:00 +0000 Subject: [PATCH] script: Drop wrong `gen` in TransmitUpdateEntry::Recorded This isn't there in the Rust code. It clears our gen, but the general message loop puts it back, which is why we didn't notice. Signed-off-by: Ian Jackson --- templates/script.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/templates/script.ts b/templates/script.ts index 452dadb5..5cdd9b2a 100644 --- a/templates/script.ts +++ b/templates/script.ts @@ -1166,7 +1166,7 @@ pieceops.SetZLevel = function } messages.Recorded = function -(j: { piece: PieceId, cseq: ClientSeq, gen: Generation +(j: { piece: PieceId, cseq: ClientSeq, zg: Generation|null, svg: string | null } ) { let piece = j.piece; let p = pieces[piece]!; @@ -1188,7 +1188,6 @@ messages.Recorded = function p.zg = zg_new; }); } - gen = j.gen; } messages.Error = function -- 2.30.2