From 1479a88606de2022503f2b105a1558097c7262e5 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Thu, 29 Apr 2021 01:55:59 +0100 Subject: [PATCH] mgmtchannel: Correct handling of expanded insn responses Signed-off-by: Ian Jackson --- src/mgmtchannel.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/mgmtchannel.rs b/src/mgmtchannel.rs index a9765369..f4b2471c 100644 --- a/src/mgmtchannel.rs +++ b/src/mgmtchannel.rs @@ -168,7 +168,8 @@ impl MgmtChannelForGame { }; let responses = match self.cmd(&cmd)? { MgmtResponse::AlterGame { error: None, responses } - if responses.len() == insns_len => { + if responses.len() == insns_len || + responses.iter().any(|r| matches!(r, MGR::InsnExpanded)) => { responses }, wat => Err(anyhow!("unexpected AlterGame response: {:?} => {:?}", -- 2.30.2