Merge "Clean up the keepalive slots when network disconnect"
am: 192f09d63e
Change-Id: I2cedf5752d37f96337ab69d94534cb7745e8efa3
This commit is contained in:
@@ -496,10 +496,11 @@ public class KeepaliveTracker {
|
|||||||
if (networkKeepalives != null) {
|
if (networkKeepalives != null) {
|
||||||
for (KeepaliveInfo ki : networkKeepalives.values()) {
|
for (KeepaliveInfo ki : networkKeepalives.values()) {
|
||||||
ki.stop(reason);
|
ki.stop(reason);
|
||||||
|
// Clean up keepalives since the network agent is disconnected and unable to pass
|
||||||
|
// back asynchronous result of stop().
|
||||||
|
cleanupStoppedKeepalive(nai, ki.mSlot);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// Clean up keepalives will be done as a result of calling ki.stop() after the slots are
|
|
||||||
// freed.
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void handleStopKeepalive(NetworkAgentInfo nai, int slot, int reason) {
|
public void handleStopKeepalive(NetworkAgentInfo nai, int slot, int reason) {
|
||||||
|
|||||||
Reference in New Issue
Block a user