Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2042cf6e authored by Michael Hoisie's avatar Michael Hoisie Committed by Android (Google) Code Review
Browse files

Merge "Fix a thread leak due to a race condition in BackdropFrameRenderer"

parents ec3b44fc 9733b38a
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -206,6 +206,10 @@ public class BackdropFrameRenderer extends Thread implements Choreographer.Frame
        try {
            Looper.prepare();
            synchronized (this) {
                if (mRenderer == null) {
                    // This can happen if 'releaseRenderer' is called immediately after 'start'.
                    return;
                }
                mChoreographer = Choreographer.getInstance();
            }
            Looper.loop();