chiark / gitweb /
make route_packet async
[hippotat.git] / src / bin / client.rs
index cfb632e8ce359ed2d89d643854e52aa2c0258fe2..8597cfd3ba2264ccff8b81dfafe149e7f5286e80 100644 (file)
@@ -283,10 +283,10 @@ async fn run_client<C:HCC>(
               if addr != ic.link.client.0 { throw!(PE::Dst(addr)) }
               Ok(())
             },
-            |(o,())| Ok({ rx_queue.push(o); }),
+            |(o,())| future::ready(Ok({ rx_queue.push(o); })),
             |e| Ok::<_,SlipFramesError<Void>>( {
               error!("{} #{}: rx discarding: {}", &ic, req_num, e);
-            }))
+            })).await
             {
               Ok(()) => reporter.lock().success(),
               Err(SlipFramesError::ErrorOnlyBad) => {