Browse Source

Fixed implicit conversion of stream from unsigned int to uint16_t

Paul-Louis Ageneau 4 years ago
parent
commit
754568506a
1 changed files with 2 additions and 2 deletions
  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);