Bug 1553789: Don't connect unless our transport is the one that is ready. r=mjf

Differential Revision: https://phabricator.services.mozilla.com/D37898

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Byron Campen [:bwc] 2019-07-15 14:10:03 +00:00
parent 016bf55af3
commit 0ef1037a0d

View File

@ -699,7 +699,7 @@ void DataChannelConnection::SetSignals(const std::string& aTransportId) {
void DataChannelConnection::TransportStateChange( void DataChannelConnection::TransportStateChange(
const std::string& aTransportId, TransportLayer::State aState) { const std::string& aTransportId, TransportLayer::State aState) {
if (aState == TransportLayer::TS_OPEN) { if (aState == TransportLayer::TS_OPEN && aTransportId == mTransportId) {
CompleteConnect(); CompleteConnect();
} }
} }