Browse Source

Removed try/catch preventing re-negotiations

Staz M 4 years ago
parent
commit
1a992708a0
1 changed files with 2 additions and 2 deletions
  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())