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

Unified Diff: remoting/protocol/jingle_session.cc

Issue 9836062: Implement exponential backoff for failed Me2Me authentication attempts (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 9 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
Index: remoting/protocol/jingle_session.cc
diff --git a/remoting/protocol/jingle_session.cc b/remoting/protocol/jingle_session.cc
index ae449401540de8ef477968c6744fc7ccf0b655bc..d42d33fd5d1c3bd315d4b97ea7ecad6fdd72564b 100644
--- a/remoting/protocol/jingle_session.cc
+++ b/remoting/protocol/jingle_session.cc
@@ -471,6 +471,9 @@ void JingleSession::OnTerminate(const JingleMessage& message,
case JingleMessage::DECLINE:
error_ = AUTHENTICATION_FAILED;
break;
+ case JingleMessage::CANCEL:
+ error_ = HOST_IS_DISABLED;
+ break;
case JingleMessage::GENERAL_ERROR:
error_ = CHANNEL_CONNECTION_ERROR;
break;
@@ -546,6 +549,9 @@ void JingleSession::CloseInternal(ErrorCode error) {
case INCOMPATIBLE_PROTOCOL:
reason = JingleMessage::INCOMPATIBLE_PARAMETERS;
break;
+ case HOST_IS_DISABLED:
+ reason = JingleMessage::CANCEL;
+ break;
default:
reason = JingleMessage::GENERAL_ERROR;
}

Powered by Google App Engine
This is Rietveld 408576698