summaryrefslogtreecommitdiff
path: root/startop/scripts/lib/cmd_utils.py
diff options
context:
space:
mode:
authorYury Kotlyarov <CKNM36@motorolasolutions.com>2019-08-06 15:10:59 -0500
committerPavel Maltsev <pavelm@google.com>2019-11-07 05:44:36 +0000
commit166f256958a04bc08cd0d849c018aa7675e109eb (patch)
treea745611b995857020db99c5c4400fc1be8352034 /startop/scripts/lib/cmd_utils.py
parentc60e032391c329b981ede8165333880ec16ec8d6 (diff)
Fix LocalOnlyHotspotReservation double stop of local hotspot.
If user executed startLocalOnlyHotspot(), then reservation.close() garbage collector still keeps reservation object until drain. If user executed startLocalOnlyHotspot second time during application life cycle, garbage collector can delete previously allocated reservation object. In this case finalize() of old reservation object will be executed, then close(), then stopLocalOnlyHotspot(). As result, new started LocalOnlyHostpot can be immediatly stopped by old reservation object delete. Steps to reproduce: execute startLocalOnlyHostpot() and reservation.close() multiple times during application life cycle, check if hotspot up couple of seconds after start. This fix prevents stopping of local hotspot if reservation was previously closed. Test: manual Bug: 139074896 Bug: 143653311 Change-Id: I86c10b577dbab8cad2d5f7e19805511a93bcb668 Merged-In: I86c10b577dbab8cad2d5f7e19805511a93bcb668 (cherry-picked from ee7b0a6ab2cf7a38699fcdcfe4096b1de232f7f0)
Diffstat (limited to 'startop/scripts/lib/cmd_utils.py')
0 files changed, 0 insertions, 0 deletions