diff options
| author | Gustav Sörnäs <gustav@sornas.net> | 2021-03-30 15:24:46 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-03-30 15:24:46 +0200 |
| commit | 795e46c98616801c678bd0a403b08cb0fcd5ee43 (patch) | |
| tree | 040efd79def19e28422980ebfb6ce414ff349570 /mumd/src/main.rs | |
| parent | a6d433e3ad95b9a21d5d473da4b1f65e78585bb2 (diff) | |
| parent | b52068eade50758673e29c79e7cb8be3f1b4151f (diff) | |
| download | mum-795e46c98616801c678bd0a403b08cb0fcd5ee43.tar.gz | |
Merge pull request #79 from mum-rs/tcp-event-queue
Diffstat (limited to 'mumd/src/main.rs')
| -rw-r--r-- | mumd/src/main.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mumd/src/main.rs b/mumd/src/main.rs index 26e8d49..276e2ce 100644 --- a/mumd/src/main.rs +++ b/mumd/src/main.rs @@ -34,7 +34,7 @@ async fn main() { bincode::serialize_into((&mut command).writer(), &Command::Ping).unwrap(); if let Ok(()) = writer.send(command.freeze()).await { if let Some(Ok(buf)) = reader.next().await { - if let Ok(Ok::<Option<CommandResponse>, mumlib::error::Error>(Some(CommandResponse::Pong))) = bincode::deserialize(&buf) { + if let Ok(Ok::<Option<CommandResponse>, mumlib::Error>(Some(CommandResponse::Pong))) = bincode::deserialize(&buf) { error!("Another instance of mumd is already running"); return; } |
