diff options
Diffstat (limited to 'remoting')
-rw-r--r-- | remoting/jingle_glue/javascript_iq_request.cc | 2 | ||||
-rw-r--r-- | remoting/jingle_glue/xmpp_iq_request.cc | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/remoting/jingle_glue/javascript_iq_request.cc b/remoting/jingle_glue/javascript_iq_request.cc index 0b75c71..b08ffe9 100644 --- a/remoting/jingle_glue/javascript_iq_request.cc +++ b/remoting/jingle_glue/javascript_iq_request.cc @@ -57,7 +57,7 @@ void JavascriptIqRegistry::OnIncomingStanza(const buzz::XmlElement* stanza) { // JavascriptIqRequest::SendIq(), but remove in // JavascriptIqRegistry::OnIq(). We should try to keep the // registration/deregistration in one spot. - if (it->second->callback_.is_null()) { + if (!it->second->callback_.is_null()) { it->second->callback_.Run(stanza); it->second->callback_.Reset(); } else { diff --git a/remoting/jingle_glue/xmpp_iq_request.cc b/remoting/jingle_glue/xmpp_iq_request.cc index e48120bc..b8057c3 100644 --- a/remoting/jingle_glue/xmpp_iq_request.cc +++ b/remoting/jingle_glue/xmpp_iq_request.cc @@ -57,7 +57,7 @@ void XmppIqRequest::Unregister() { void XmppIqRequest::IqResponse(buzz::XmppIqCookie cookie, const buzz::XmlElement* stanza) { - if (callback_.is_null()) { + if (!callback_.is_null()) { callback_.Run(stanza); callback_.Reset(); } |