consolidate debug output

This commit is contained in:
Astro 2017-06-19 02:34:16 +02:00
commit 000f848dd0
4 changed files with 20 additions and 22 deletions

View file

@ -31,10 +31,7 @@ impl<S: AsyncWrite> ClientBind<S> {
// return the (probably // usable) stream immediately
ClientBind::Unsupported(stream),
Some(_) => {
println!("Bind is supported!");
let iq = make_bind_request(stream.jid.resource.as_ref());
println!("Send {}", iq);
let send = stream.send(Packet::Stanza(iq));
ClientBind::WaitSend(send)
},