1
1
mirror of https://github.com/wez/wezterm.git synced 2024-11-22 22:42:48 +03:00

mux: assertively error out if we get an unexpected serial

refs: #1358
This commit is contained in:
Wez Furlong 2021-12-05 09:46:27 -08:00
parent fada0c6ac3
commit 13b2337235

View File

@ -247,10 +247,10 @@ async fn client_thread_async(
return Err(NotReconnectableError::ClientWasDestroyed.into());
}
} else {
log::error!(
"got serial {} without a corresponding promise",
decoded.serial
);
let reason =
format!("got serial {:?} without a corresponding promise", decoded);
promises.fail_all(&reason);
anyhow::bail!("{}", reason);
}
}
Err(err) => {