Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2948)

Unified Diff: remoting/jingle_glue/javascript_iq_request.cc

Issue 7744058: IqRequest implementations: calls the callback when response is received. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | remoting/jingle_glue/xmpp_iq_request.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/jingle_glue/javascript_iq_request.cc
diff --git a/remoting/jingle_glue/javascript_iq_request.cc b/remoting/jingle_glue/javascript_iq_request.cc
index 0b75c71a51244790a45ed78becd5d36efcb72c61..b08ffe980c0d173fcf11095035b926f4f209a924 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 {
« no previous file with comments | « no previous file | remoting/jingle_glue/xmpp_iq_request.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698