summaryrefslogtreecommitdiff
path: root/libs/input/SpriteController.cpp
diff options
context:
space:
mode:
author Benedict Wong <benedictwong@google.com> 2021-06-25 12:03:10 -0700
committer Benedict Wong <benedictwong@google.com> 2021-06-25 19:37:17 +0000
commit7207a83ca8796ced7e7fc4f7eba2433ecaa2ff0f (patch)
tree7c2ff7b52e4e25c7cd03b6c8817661236efefb94 /libs/input/SpriteController.cpp
parent84d8829d7296b6b9948d8ce12e1b899cd0a3bf4d (diff)
Fix dangling NetworkAgent
This change fixes the potential for a networkAgent to be left dangling, due to a situation where a VcnGatewayConnection shuts down, but fails to unregister it's NetworkAgent. The root cause was that the NetworkAgent was not unregistered when moving to the DisconnectedState from the RetryTimeoutState, and the new state assumed that there was no NetworkAgent, and thus failed to close it when disconnecting. Thus, this change ensures that the NetworkAgent is closed before moving to the DisconnectedState. Additionally, it adds safety-checks to onQuitting(), ensuring that if all else fails, these fields are cleaned up. Lastly, this change adds the specific gateway reference to facilitate future debugging of issues such as this where there is potential for duplicate networks, or gateway connections. Bug: 191707296 Test: atest FrameworksVcnTests Change-Id: I84cd43a0c136662f5c2d229650f1f5f889e6f144
Diffstat (limited to 'libs/input/SpriteController.cpp')
0 files changed, 0 insertions, 0 deletions