Index: remoting/protocol/connection_to_host.cc |
diff --git a/remoting/protocol/connection_to_host.cc b/remoting/protocol/connection_to_host.cc |
index c8fa0893353c2167ee4fc0b8aa17752558178cf4..4b4fc893f793a268f83183e54e07548179b58c04 100644 |
--- a/remoting/protocol/connection_to_host.cc |
+++ b/remoting/protocol/connection_to_host.cc |
@@ -127,6 +127,9 @@ void ConnectionToHost::OnSessionManagerReady() { |
// After SessionManager is initialized we can try to connect to the host. |
scoped_ptr<CandidateSessionConfig> candidate_config = |
CandidateSessionConfig::CreateDefault(); |
+ if (!audio_stub_) |
+ CandidateSessionConfig::DisableAudioChannel(candidate_config.get()); |
+ |
session_ = session_manager_->Connect( |
host_jid_, authenticator_.Pass(), candidate_config.Pass()); |
session_->SetEventHandler(this); |