OSDN Git Service

Fix CS/NetworkMonitor race.
authorRobert Greenwalt <rgreenwalt@google.com>
Wed, 20 Aug 2014 01:58:04 +0000 (18:58 -0700)
committerRobert Greenwalt <rgreenwalt@google.com>
Wed, 20 Aug 2014 16:30:15 +0000 (09:30 -0700)
commit73ed9d8dee5ef7139b84c8e1713fec7ff5ccce5d
treee715779da5e4d5b1a00b9ed3740ddfcc7de6ced3
parent92973b8f37769c231c02e9a66fb96b555bd3e3d5
Fix CS/NetworkMonitor race.

If we have a message in flight about a NetworkAgentInfo when it gets disconnected
we are left with a zombie network.  Fixes this by verifing the network is still
live before we process the msg.

bug:17142206
Change-Id: I2c94a39b3ea97c1562066571b277280c1f69f71c
services/core/java/com/android/server/ConnectivityService.java