Browse Source

Added missing return

Paul-Louis Ageneau 4 years ago
parent
commit
326ae27ad1
1 changed files with 1 additions and 0 deletions
  1. 1 0
      src/peerconnection.cpp

+ 1 - 0
src/peerconnection.cpp

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