Browse Source

Fixed double space in generated srflx candidates

Paul-Louis Ageneau 5 years ago
parent
commit
686b468d7b
2 changed files with 1 additions and 3 deletions
  1. 1 1
      src/candidate.cpp
  2. 0 2
      src/peerconnection.cpp

+ 1 - 1
src/candidate.cpp

@@ -81,7 +81,7 @@ Candidate::Candidate(string candidate, string mid) {
 						ss << foundation << sp << component << sp << transport << sp << priority;
 						ss << foundation << sp << component << sp << transport << sp << priority;
 						ss << sp << nodebuffer << sp << servbuffer << sp << "typ" << sp << type;
 						ss << sp << nodebuffer << sp << servbuffer << sp << "typ" << sp << type;
 						if (!left.empty())
 						if (!left.empty())
-							ss << sp << left;
+							ss << left;
 						mCandidate = ss.str();
 						mCandidate = ss.str();
 						break;
 						break;
 					}
 					}

+ 0 - 2
src/peerconnection.cpp

@@ -63,8 +63,6 @@ void PeerConnection::addRemoteCandidate(Candidate candidate) {
 
 
 	if (mIceTransport->addRemoteCandidate(candidate))
 	if (mIceTransport->addRemoteCandidate(candidate))
 		mRemoteDescription->addCandidate(std::make_optional(std::move(candidate)));
 		mRemoteDescription->addCandidate(std::make_optional(std::move(candidate)));
-	else
-		std::cerr << "Failed to add remote ICE candidate" << std::endl;
 }
 }
 
 
 shared_ptr<DataChannel> PeerConnection::createDataChannel(const string &label,
 shared_ptr<DataChannel> PeerConnection::createDataChannel(const string &label,