aboutsummaryrefslogtreecommitdiffstats
path: root/mumd/src/main.rs
diff options
context:
space:
mode:
authorGustav Sörnäs <gustav@sornas.net>2021-04-19 23:17:52 +0200
committerGitHub <noreply@github.com>2021-04-19 23:17:52 +0200
commit182222664a513ef2b2da74e6b4f67274338b5a77 (patch)
tree16ff6ca08aaeb5f6cbde8289940b56623b8706d0 /mumd/src/main.rs
parent61ad0c5f80c79911cce00263d4b1bd3e2f2defe8 (diff)
parent4da882513c9a692161ff00e4421325ffc7d4af24 (diff)
downloadmum-182222664a513ef2b2da74e6b4f67274338b5a77.tar.gz
Merge pull request #90 from mum-rs/server-list-parallel
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();