소스 검색

Merge branch 'v0.17'

Paul-Louis Ageneau 3 년 전
부모
커밋
8a4dbe2d3b
1개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  1. 3 0
      src/impl/peerconnection.cpp

+ 3 - 0
src/impl/peerconnection.cpp

@@ -454,6 +454,9 @@ void PeerConnection::forwardMessage(message_ptr message) {
 	}
 
 	if (!channel) {
+		if (message->type == Message::Control) // ignore control messages like Close
+			return;
+
 		// Invalid, close the DataChannel
 		PLOG_WARNING << "Got unexpected message on stream " << stream;
 		if (auto sctpTransport = getSctpTransport())