Don't panic if terminal does not exist
@@ -342,11 +342,11 @@ fn handle_notification(&self, rpc: ProxyNotification) {
}
TerminalWrite { term_id, content } => {
let terminals = self.terminals.lock();
- let tx = terminals.get(&term_id).unwrap();
-
+ if let Some(tx) = terminals.get(&term_id) {
#[allow(deprecated)]
let _ = tx.send(Msg::Input(content.into_bytes().into()));
}
+ }
TerminalResize {
term_id,
width,
