diff options
Diffstat (limited to 'mumd/src')
| -rw-r--r-- | mumd/src/main.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/mumd/src/main.rs b/mumd/src/main.rs index 5b22089..18b84b8 100644 --- a/mumd/src/main.rs +++ b/mumd/src/main.rs @@ -77,7 +77,8 @@ async fn receive_commands( reader.filter_map(|buf| async { buf.ok() }) - .map(|buf| bincode::deserialize::<Command>(&buf).unwrap()) + .map(|buf| bincode::deserialize::<Command>(&buf)) + .filter_map(|e| async { e.ok() }) .filter_map(|command| async { let (tx, rx) = oneshot::channel(); |
