Explorar el Código

Fixed remote DataChannel unordered flag

Paul-Louis Ageneau hace 4 años
padre
commit
802516b2db
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/datachannel.cpp

+ 1 - 1
src/datachannel.cpp

@@ -306,7 +306,7 @@ void NegociatedDataChannel::processOpenMessage(message_ptr message) {
 	mLabel.assign(end, open.labelLength);
 	mProtocol.assign(end + open.labelLength, open.protocolLength);
 
-	mReliability->unordered = (open.reliabilityParameter & 0x80) != 0;
+	mReliability->unordered = (open.channelType & 0x80) != 0;
 	switch (open.channelType & 0x7F) {
 	case CHANNEL_PARTIAL_RELIABLE_REXMIT:
 		mReliability->type = Reliability::Type::Rexmit;