aboutsummaryrefslogtreecommitdiffstats
path: root/mumd/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'mumd/src/main.rs')
-rw-r--r--mumd/src/main.rs8
1 files changed, 7 insertions, 1 deletions
diff --git a/mumd/src/main.rs b/mumd/src/main.rs
index d7bc2c0..f298070 100644
--- a/mumd/src/main.rs
+++ b/mumd/src/main.rs
@@ -109,7 +109,13 @@ async fn receive_commands(
sender.send((command, tx)).unwrap();
- let response = rx.await.unwrap();
+ let response = match rx.await {
+ Ok(r) => r,
+ Err(_) => {
+ error!("Internal command response sender dropped");
+ Ok(None)
+ }
+ };
let mut serialized = BytesMut::new();
bincode::serialize_into((&mut serialized).writer(), &response).unwrap();