Paul-Louis Ageneau 3 лет назад
Родитель
Сommit
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 (!channel) {
+		if (message->type == Message::Control) // ignore control messages like Close
+			return;
+
 		// Invalid, close the DataChannel
 		// Invalid, close the DataChannel
 		PLOG_WARNING << "Got unexpected message on stream " << stream;
 		PLOG_WARNING << "Got unexpected message on stream " << stream;
 		if (auto sctpTransport = getSctpTransport())
 		if (auto sctpTransport = getSctpTransport())