浏览代码

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())