浏览代码

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())