diff options
author | Jesse Luehrs <doy@tozt.net> | 2022-02-25 20:59:40 -0500 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2022-02-25 20:59:40 -0500 |
commit | b8f61109f7d22a09458d78681155150f39a12269 (patch) | |
tree | dd2c67ae51413bd842dea9c86ac4ac3389d6e5e7 /src/shell/history/entry.rs | |
parent | 31d2bd9dfc8da6cec159f38c28f3220c8b538d34 (diff) | |
download | nbsh-b8f61109f7d22a09458d78681155150f39a12269.tar.gz nbsh-b8f61109f7d22a09458d78681155150f39a12269.zip |
don't error when sending events during application shutdown
Diffstat (limited to 'src/shell/history/entry.rs')
-rw-r--r-- | src/shell/history/entry.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/shell/history/entry.rs b/src/shell/history/entry.rs index 97e8a7b..ac3a279 100644 --- a/src/shell/history/entry.rs +++ b/src/shell/history/entry.rs @@ -341,11 +341,11 @@ impl Entry { pub async fn finish( &mut self, env: Env, - event_w: tokio::sync::mpsc::UnboundedSender<Event>, + event_w: crate::shell::event::Writer, ) { self.state = State::Exited(ExitInfo::new(env.latest_status())); self.env = env; - event_w.send(Event::PtyClose).unwrap(); + event_w.send(Event::PtyClose); } fn exit_info(&self) -> Option<&ExitInfo> { |