commit | 9f8f1fd9a7f22db4c89fbdf0b03885eac70e327f | [log] [tgz] |
---|---|---|
author | Miranda Kephart <mkephart@google.com> | Wed Sep 21 11:49:47 2022 -0400 |
committer | Miranda Kephart <mkephart@google.com> | Thu Sep 22 14:20:38 2022 +0000 |
tree | e6d18126ea974647cf226076057768ee88b7ffad | |
parent | 6c137496fe6ffecf7d1f319f5de9fda50930085b [diff] |
Clean up leaked screenshot connections If a subsequent screenshot is taken after we bind to the screenshot service, but before we get the onServiceConnected callback, we leak the connection to the service, preventing it from ever getting shut down. Fix this by unbinding the old connection before connecting with the new one. Bug: 242862442 Fix: 242862442 Test: forced DisplayPolicy to take two consecutive screenshots Change-Id: Iffb62170266a2c1bb332bfb416f0f5e19c5236fb