Commit 455a6168 authored by sergeyu@chromium.org's avatar sergeyu@chromium.org

Report correct error when connection cannot be established.


BUG=103937
TEST=see the bug


Review URL: http://codereview.chromium.org/8536032

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@109756 0039d316-1c4b-4281-b951-d872f2087c98
parent 0ad8ae7d
......@@ -284,6 +284,15 @@ void PepperSession::OnTerminate(const JingleMessage& message,
return;
}
// TODO(sergeyu): We should return CHANNEL_CONNECTION_ERROR only in
// case when |message.reason| is set GENERAL_ERROR, but some legacy
// hosts may sent terminate messages with reason set to SUCCESS.
if (state_ == CONNECTED) {
// Session was connected, but we failed to connect channels.
OnError(CHANNEL_CONNECTION_ERROR);
return;
}
CloseInternal(false);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment