Jelajahi Sumber

Added missing return

Paul-Louis Ageneau 5 tahun lalu
induk
melakukan
326ae27ad1
1 mengubah file dengan 1 tambahan dan 0 penghapusan
  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