happy_eyeballs: propagate actual connection error
This commit is contained in:
parent
81191041c4
commit
ce2ce363b0
3 changed files with 31 additions and 19 deletions
|
|
@ -55,7 +55,6 @@ impl Component {
|
|||
let password = password;
|
||||
done(Connecter::from_lookup(server, None, port))
|
||||
.flatten()
|
||||
.map_err(Error::Connection)
|
||||
.and_then(move |tcp_stream| {
|
||||
xmpp_stream::XMPPStream::start(tcp_stream, jid1, NS_JABBER_COMPONENT_ACCEPT.to_owned())
|
||||
}).and_then(move |xmpp_stream| {
|
||||
|
|
|
|||
Loading…
Reference in a new issue