migrate to minidom 0.6.0
This commit is contained in:
parent
ff165d745d
commit
0743249280
5 changed files with 34 additions and 50 deletions
|
|
@ -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))
|
||||
|
|
|
|||
Loading…
Reference in a new issue