瀏覽代碼

Added missing return

Paul-Louis Ageneau 5 年之前
父節點
當前提交
326ae27ad1
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      src/peerconnection.cpp

+ 1 - 0
src/peerconnection.cpp

@@ -102,6 +102,7 @@ void PeerConnection::setLocalDescription() {
 
 	if (std::atomic_load(&mIceTransport)) {
 		PLOG_DEBUG << "Local description is already set, ignoring";
+		return;
 	}
 
 	// RFC 5763: The endpoint that is the offerer MUST use the setup attribute value of