Skip to content

Commit 27725e8

Browse files
author
Robert Greenwalt
committed
Only leave one default network up at a time.
If original refuses to tear down, tear down new one. It's better to have none (which will try to launch them all again) than two. Really people shouldn't refuse the teardown request. bug:4183397 Change-Id: I54ea1bf0d2cd2ef16fcf2eafc69895ad2fe33ffd
1 parent 7544b23 commit 27725e8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

services/java/com/android/server/ConnectivityService.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1266,6 +1266,7 @@ private void handleConnect(NetworkInfo info) {
12661266
" teardown");
12671267
if (!teardown(otherNet)) {
12681268
Slog.e(TAG, "Network declined teardown request");
1269+
teardown(thisNet);
12691270
return;
12701271
}
12711272
if (isFailover) {

0 commit comments

Comments
 (0)