diff --git a/src/stream_start.rs b/src/stream_start.rs index 480178eb..3e5bc8b2 100644 --- a/src/stream_start.rs +++ b/src/stream_start.rs @@ -75,7 +75,7 @@ impl Future for StreamStart { Ok(Async::Ready(Some(Packet::Stanza(stanza)))) => if stanza.name == "features" && stanza.ns == Some(NS_XMPP_STREAM.to_owned()) { - (StreamStartState::Invalid, Ok(Async::Ready(XMPPStream { stream, stream_attrs, stream_features: stanza }))) + (StreamStartState::Invalid, Ok(Async::Ready(XMPPStream::new(stream, stream_attrs, stanza)))) } else { (StreamStartState::RecvFeatures(stream, stream_attrs), Ok(Async::NotReady)) },