1
1
mirror of https://github.com/wez/wezterm.git synced 2024-12-01 00:35:46 +03:00

mux: don't panic the server if the client disconnects

I saw that the server exited with a panic here in the case that the
connection was torn down and left the channel broken.  We don't need
to terminate in this case and can simply ignore the error.
This commit is contained in:
Wez Furlong 2020-02-23 10:38:46 -08:00
parent 65749f06a3
commit 9b4ddde908

View File

@ -185,9 +185,7 @@ impl SessionHandler {
}),
};
log::trace!("{} processing time {:?}", serial, start.elapsed());
sender
.send(DecodedPdu { pdu, serial })
.expect("failed to send DecodedPdu to sender")
sender.send(DecodedPdu { pdu, serial }).ok();
};
fn catch<F, SND>(f: F, send_response: SND)