summaryrefslogtreecommitdiffstats
path: root/remoting/jingle_glue/xmpp_signal_strategy.cc
diff options
context:
space:
mode:
authorsergeyu@chromium.org <sergeyu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-08-03 21:07:29 +0000
committersergeyu@chromium.org <sergeyu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-08-03 21:07:29 +0000
commit3db8bb08078f239887acebad75af1e32f4c7d601 (patch)
tree4527af94935e56695227e0038ea699712255029c /remoting/jingle_glue/xmpp_signal_strategy.cc
parent1ba39c0011aa0a09843d6d8b8c092839d45b87ed (diff)
downloadchromium_src-3db8bb08078f239887acebad75af1e32f4c7d601.zip
chromium_src-3db8bb08078f239887acebad75af1e32f4c7d601.tar.gz
chromium_src-3db8bb08078f239887acebad75af1e32f4c7d601.tar.bz2
Return correct value from XmppSignalStrategy::HandleStanza()
BUG=91531 TEST=Connection always works. Review URL: http://codereview.chromium.org/7564024 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@95316 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'remoting/jingle_glue/xmpp_signal_strategy.cc')
-rw-r--r--remoting/jingle_glue/xmpp_signal_strategy.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/remoting/jingle_glue/xmpp_signal_strategy.cc b/remoting/jingle_glue/xmpp_signal_strategy.cc
index a5f9a2b..f1e399b 100644
--- a/remoting/jingle_glue/xmpp_signal_strategy.cc
+++ b/remoting/jingle_glue/xmpp_signal_strategy.cc
@@ -53,7 +53,7 @@ void XmppSignalStrategy::Init(StatusObserver* observer) {
xmpp_client_->Connect(settings, "", socket, CreatePreXmppAuth(settings));
xmpp_client_->SignalStateChange.connect(
this, &XmppSignalStrategy::OnConnectionStateChanged);
- xmpp_client_->engine()->AddStanzaHandler(this, buzz::XmppEngine::HL_PEEK);
+ xmpp_client_->engine()->AddStanzaHandler(this, buzz::XmppEngine::HL_TYPE);
xmpp_client_->Start();
}
@@ -87,7 +87,7 @@ IqRequest* XmppSignalStrategy::CreateIqRequest() {
bool XmppSignalStrategy::HandleStanza(const buzz::XmlElement* stanza) {
if (listener_)
- listener_->OnIncomingStanza(stanza);
+ return listener_->OnIncomingStanza(stanza);
return false;
}