OSDN Git Service

Remove dead KeepaliveInfo if it cannot be started
authorjunyulai <junyulai@google.com>
Thu, 17 Jan 2019 07:15:45 +0000 (15:15 +0800)
committerjunyulai <junyulai@google.com>
Fri, 18 Jan 2019 13:48:13 +0000 (21:48 +0800)
commit5e7128d77dde7ee1cfceaafb331893495f04730c
tree824c35c5945f1dc60f903977e4ed0df1c7f05ce4
parent56401a4c74dc6acd307b4e3432bd86414a57176a
Remove dead KeepaliveInfo if it cannot be started

If KeepaliveInfo was created but cannot be started, current
design will only notify apps but not remove it from local
hashmap, which will cause unexpected behavior if someone
tries to iterate records and fire callbacks.

Bug: 122636283
Test: atest FrameworksNetTests
Change-Id: If4cb25a881dd3555f569c729f88741675f7f3bdf
services/core/java/com/android/server/connectivity/KeepaliveTracker.java