Remove Assert lint suppression.

BUG=webrtc:6597
NOTRY=True

Review-Url: https://codereview.webrtc.org/2668963002
Cr-Commit-Position: refs/heads/master@{#16460}
This commit is contained in:
sakal
2017-02-07 01:41:47 -08:00
committed by Commit bot
parent 4709e8971b
commit 1959b63b61
2 changed files with 4 additions and 2 deletions

View File

@ -263,7 +263,10 @@ public class NetworkMonitorAutoDetect extends BroadcastReceiver {
// ConnectivityManager.getDefaultNetwork() though this
// may give confusing results with VPNs and is only
// available with Android Marshmallow.
assert defaultNetId == INVALID_NET_ID;
if (defaultNetId != INVALID_NET_ID) {
throw new RuntimeException(
"Multiple connected networks of same type are not supported.");
}
defaultNetId = networkToNetId(network);
}
}