commit | 08ea47d0a121578ace52add7bace0f85a84a0d7a | [log] [tgz] |
---|---|---|
author | junyulai <junyulai@google.com> | Thu Sep 10 17:30:17 2020 +0800 |
committer | junyulai <junyulai@google.com> | Thu Sep 17 19:51:34 2020 +0800 |
tree | a6d1425f518c18bf3035ca804aeaaa9f248de8e7 | |
parent | fc6fbde5dfaf9690251a8a399d627c45ac03f7cd [diff] |
Skip stop if keepalive is already in stopping state In current design, crash has been generated when stop function has been re-entered to catch unexpected behavior. However, it is possible to re-enter stop function if the network disconnection occurs after stopping. Thus, skip stop if keepalive is already in stopping state. Test: atest ConnectivityServiceTest#testNattSocketKeepalives \ --rerun-until-failure 60000 Bug: 167332570 Change-Id: Ic7068ad3dc990e957c37b8d87d48ebb6469b101f