switch from rustxml to minidom, doesn't work
This commit is contained in:
parent
fa08591162
commit
d4bd64370c
11 changed files with 241 additions and 205 deletions
|
|
@ -76,8 +76,8 @@ impl<S: AsyncRead + AsyncWrite> Future for StreamStart<S> {
|
|||
StreamStartState::RecvFeatures(mut stream, stream_attrs) =>
|
||||
match stream.poll() {
|
||||
Ok(Async::Ready(Some(Packet::Stanza(stanza)))) =>
|
||||
if stanza.name == "features"
|
||||
&& stanza.ns == Some(NS_XMPP_STREAM.to_owned()) {
|
||||
if stanza.name() == "features"
|
||||
&& stanza.ns() == Some(NS_XMPP_STREAM) {
|
||||
let stream = XMPPStream::new(self.jid.clone(), stream, stream_attrs, stanza);
|
||||
(StreamStartState::Invalid, Ok(Async::Ready(stream)))
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Reference in a new issue