migrate to minidom 0.6.0

This commit is contained in:
Astro 2017-08-14 03:56:08 +02:00
commit 0743249280
5 changed files with 34 additions and 50 deletions

View file

@ -71,8 +71,7 @@ impl<S: AsyncRead + AsyncWrite> Future for ComponentAuth<S> {
ComponentAuthState::WaitRecv(mut stream) =>
match stream.poll() {
Ok(Async::Ready(Some(Packet::Stanza(ref stanza))))
if stanza.name() == "handshake"
&& stanza.ns() == Some(NS_JABBER_COMPONENT_ACCEPT) =>
if stanza.is("handshake", NS_JABBER_COMPONENT_ACCEPT) =>
{
self.state = ComponentAuthState::Invalid;
Ok(Async::Ready(stream))