Process leftover commands
[?]
Oct 28, 2018, 7:21 AM
7OTSYQ4Z34N5AOSBCMN63M7WA4DYKFAY5B7SB25BG3IHE6FCUKLACDependencies
Change contents
- replacement in src/xmpp.rs at line 30
Ok(Either::A((_x, _b))) => {Ok(Either::A((_x, b))) => { - replacement in src/xmpp.rs at line 32
future::ok(future::Loop::Break(()))future::ok(future::Loop::Break(b.into_inner())) - replacement in src/xmpp.rs at line 38
Err(Either::A((e, _b))) => {Err(Either::A((e, b))) => { - replacement in src/xmpp.rs at line 41
future::ok(future::Loop::Break(()))future::ok(future::Loop::Break(b.into_inner())) - edit in src/xmpp.rs at line 52
}).and_then(|opt_cmd_recv: Option<Receiver<XmppCommand>>| {if let Some(mut cmd_recv) = opt_cmd_recv {// process left commandsinfo!("Stop accepting commands");cmd_recv.close();Box::new(cmd_recv.for_each(|_cmd| future::ok(())).map_err(|_| {tokio::io::Error::new(tokio::io::ErrorKind::Other, "cmd receiver last error")})) as Box<Future<Item = (), Error = tokio::io::Error>>} else {Box::new(future::err(tokio::io::Error::new(tokio::io::ErrorKind::Other,"cmd receiver gone",)))}