Merge "ConnectivityManager: no double callback remove" into nyc-mr1-dev
This commit is contained in:
commit
0ecfb2fd34
1 changed files with 1 additions and 4 deletions
|
|
@ -3103,14 +3103,11 @@ public class ConnectivityManager {
|
|||
throw new IllegalArgumentException("Invalid NetworkCallback");
|
||||
}
|
||||
try {
|
||||
// CallbackHandler will release callback when receiving CALLBACK_RELEASED.
|
||||
mService.releaseNetworkRequest(networkCallback.networkRequest);
|
||||
} catch (RemoteException e) {
|
||||
throw e.rethrowFromSystemServer();
|
||||
}
|
||||
|
||||
synchronized (sNetworkCallback) {
|
||||
sNetworkCallback.remove(networkCallback.networkRequest);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in a new issue