소스 검색

Removed try/catch preventing re-negotiations

Staz M 5 년 전
부모
커밋
1a992708a0
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      src/peerconnection.cpp

+ 2 - 2
src/peerconnection.cpp

@@ -256,8 +256,8 @@ bool PeerConnection::hasMedia() const {
 }
 
 std::shared_ptr<Track> PeerConnection::addTrack(Description::Media description) {
-	if (localDescription())
-		throw std::logic_error("Tracks must be created before local description");
+//	if (localDescription())
+//		throw std::logic_error("Tracks must be created before local description");
 
 	if (auto it = mTracks.find(description.mid()); it != mTracks.end())
 		if (auto track = it->second.lock())