Upstream version 5.34.104.0
[platform/framework/web/crosswalk.git] / src / third_party / libjingle / source / talk / app / webrtc / test / peerconnectiontestwrapper.cc
index 91b6668..ca4b6d2 100644 (file)
@@ -204,7 +204,9 @@ void PeerConnectionTestWrapper::WaitForConnection() {
 
 bool PeerConnectionTestWrapper::CheckForConnection() {
   return (peer_connection_->ice_connection_state() ==
-          PeerConnectionInterface::kIceConnectionConnected);
+          PeerConnectionInterface::kIceConnectionConnected) ||
+         (peer_connection_->ice_connection_state() ==
+          PeerConnectionInterface::kIceConnectionCompleted);
 }
 
 void PeerConnectionTestWrapper::WaitForAudio() {