Fix typo, don't hard-code SCTP port. r?jesup
draft
Fix typo, don't hard-code SCTP port. r?jesup
MozReview-Commit-ID: LaNgonYKhG5
--- a/media/webrtc/signaling/src/peerconnection/PeerConnectionImpl.cpp
+++ b/media/webrtc/signaling/src/peerconnection/PeerConnectionImpl.cpp
@@ -1100,17 +1100,17 @@ PeerConnectionImpl::EnsureDataConnection
// and we increase the number of streams dynamically as needed.
return NS_OK;
}
nsCOMPtr<nsIEventTarget> target = mWindow
? mWindow->EventTargetFor(TaskCategory::Other)
: nullptr;
mDataConnection = new DataChannelConnection(this, target);
- if (!mDataConnection->Init(5000, aNumstreams, aMMSSet, aMaxMessageSize)) {
+ if (!mDataConnection->Init(aLocalPort, aNumstreams, aMMSSet, aMaxMessageSize)) {
CSFLogError(logTag,"%s DataConnection Init Failed",__FUNCTION__);
return NS_ERROR_FAILURE;
}
CSFLogDebug(logTag,"%s DataChannelConnection %p attached to %s",
__FUNCTION__, (void*) mDataConnection.get(), mHandle.c_str());
return NS_OK;
}