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

Commit 2270753d authored by Mark Renouf's avatar Mark Renouf
Browse files

Ensure the Surface is closed when the session ends

Bug: 175830670
Test: manual
Change-Id: Ifa86130810e19e45a2747076c6fd298fb2ec6cd1
parent 8f1b73e1
Loading
Loading
Loading
Loading
+2 −0
Original line number Original line Diff line number Diff line
@@ -278,6 +278,7 @@ public class ScrollCaptureClient {
                mStarted = true;
                mStarted = true;
            } catch (RemoteException e) {
            } catch (RemoteException e) {
                Log.w(TAG, "Failed to start", e);
                Log.w(TAG, "Failed to start", e);
                mReader.close();
            }
            }
        }
        }


@@ -327,6 +328,7 @@ public class ScrollCaptureClient {
            }
            }
            if (mStarted) {
            if (mStarted) {
                mShutdownListener = listener;
                mShutdownListener = listener;
                mReader.close();
                try {
                try {
                    // listener called from onConnectionClosed callback
                    // listener called from onConnectionClosed callback
                    mConnection.endCapture();
                    mConnection.endCapture();