chiark
/
gitweb
/
~ianmdlvl
/
otter.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a9eea3f
)
mgmtchannel: Correct handling of expanded insn responses
author
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Thu, 29 Apr 2021 00:55:59 +0000
(
01:55
+0100)
committer
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Thu, 29 Apr 2021 00:56:20 +0000
(
01:56
+0100)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
src/mgmtchannel.rs
patch
|
blob
|
history
diff --git
a/src/mgmtchannel.rs
b/src/mgmtchannel.rs
index a9765369e57d1202897cf5af3c321f83d41a8ffd..f4b2471caf186e7ac0234ead107e96e96a1a4946 100644
(file)
--- 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: {:?} => {:?}",