commit | b92d1f55133b0ffe49df89e7aab67b8db7036fa5 | [log] [tgz] |
---|---|---|
author | Junaid Babu <junaidvayoli@gmail.com> | Tue Dec 17 13:56:26 2019 +0900 |
committer | Junaid Babu <junaidvayoli@gmail.com> | Tue Dec 17 15:09:01 2019 +0900 |
tree | 2c30354bef6a8d7469f7197bfc7a6be2bf9fe7ea | |
parent | 39e75098594e4758275cd2bb15e856e363c19782 [diff] |
Fix refCount check at releaseNetworkFor When releaseNetworkFor is called, refCount should be equal to 1 for network.stop() to be called. This is the same logic that is followed by WifiNetworkFactory also. In the current code, when refCount is 2 and releaseNetworkFor() is called, network.stop() will be executed and will stop Ethernet Bug: 146089778 Test: build and boot OK Change-Id: Ib7d1b488a2943364a8ba4a89eec5de4c33cf1d5a