Merge "Destroy transaction tracing from main thread" into main
diff --git a/services/surfaceflinger/SurfaceFlinger.cpp b/services/surfaceflinger/SurfaceFlinger.cpp
index 2e97b2d..a796a72 100644
--- a/services/surfaceflinger/SurfaceFlinger.cpp
+++ b/services/surfaceflinger/SurfaceFlinger.cpp
@@ -7057,7 +7057,7 @@
if (mTransactionTracing) {
int arg = data.readInt32();
if (arg == -1) {
- mTransactionTracing.reset();
+ mScheduler->schedule([&]() { mTransactionTracing.reset(); }).get();
} else if (arg > 0) {
// Transaction tracing is always running but allow the user to temporarily
// increase the buffer when actively debugging.