Merge "Fix crash due to race on close()" into tm-qpr-dev am: faf0b610d3
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19194567 Change-Id: Ifa6a92cb60683f42afb541a977d255adacf029f7 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -214,7 +214,7 @@ public class ScrollCaptureConnection extends IScrollCaptureConnection.Stub imple
|
|||||||
|
|
||||||
@BinderThread
|
@BinderThread
|
||||||
@Override
|
@Override
|
||||||
public void close() {
|
public synchronized void close() {
|
||||||
Trace.instantForTrack(TRACE_TAG_GRAPHICS, TRACE_TRACK, "close");
|
Trace.instantForTrack(TRACE_TAG_GRAPHICS, TRACE_TRACK, "close");
|
||||||
if (mActive) {
|
if (mActive) {
|
||||||
Log.w(TAG, "close(): capture session still active! Ending now.");
|
Log.w(TAG, "close(): capture session still active! Ending now.");
|
||||||
|
|||||||
Reference in New Issue
Block a user