浏览代码

Fixed double space in generated srflx candidates

Paul-Louis Ageneau 5 年之前
父节点
当前提交
686b468d7b
共有 2 个文件被更改,包括 1 次插入3 次删除
  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 << sp << nodebuffer << sp << servbuffer << sp << "typ" << sp << type;
 						if (!left.empty())
-							ss << sp << left;
+							ss << left;
 						mCandidate = ss.str();
 						break;
 					}

+ 0 - 2
src/peerconnection.cpp

@@ -63,8 +63,6 @@ void PeerConnection::addRemoteCandidate(Candidate candidate) {
 
 	if (mIceTransport->addRemoteCandidate(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,