瀏覽代碼

Fixed implicit conversion of stream from unsigned int to uint16_t

Paul-Louis Ageneau 4 年之前
父節點
當前提交
754568506a
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      src/peerconnection.cpp

+ 2 - 2
src/peerconnection.cpp

@@ -649,10 +649,10 @@ void PeerConnection::forwardMessage(message_ptr message) {
 		    stream % 2 == remoteParity) {
 
 			channel = std::make_shared<NegociatedDataChannel>(shared_from_this(), sctpTransport,
-			                                                  message->stream);
+			                                                  stream);
 			channel->onOpen(weak_bind(&PeerConnection::triggerDataChannel, this,
 			                          weak_ptr<DataChannel>{channel}));
-			mDataChannels.emplace(message->stream, channel);
+			mDataChannels.emplace(stream, channel);
 		} else {
 			// Invalid, close the DataChannel
 			sctpTransport->closeStream(message->stream);