diff options
Diffstat (limited to 'mumd/src/main.rs')
| -rw-r--r-- | mumd/src/main.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/mumd/src/main.rs b/mumd/src/main.rs index d7bc2c0..341300e 100644 --- a/mumd/src/main.rs +++ b/mumd/src/main.rs @@ -109,7 +109,10 @@ async fn receive_commands( sender.send((command, tx)).unwrap(); - let response = rx.await.unwrap(); + let response = match rx.await { + Ok(r) => r, + Err(_) => Ok(None), + }; let mut serialized = BytesMut::new(); bincode::serialize_into((&mut serialized).writer(), &response).unwrap(); |
