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

Commit 26fd4307 authored by Chong Zhang's avatar Chong Zhang Committed by android-build-merger
Browse files

Merge "Fix warning when force-disconnect but there is no connected API" into nyc-dev

am: 82a7ddc4

* commit '82a7ddc4':
  Fix warning when force-disconnect but there is no connected API
parents 6c10d1e0 82a7ddc4
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -1117,6 +1117,11 @@ status_t BufferQueueProducer::disconnect(int api) {

        if (api == BufferQueueCore::CURRENTLY_CONNECTED_API) {
            api = mCore->mConnectedApi;
            // If we're asked to disconnect the currently connected api but
            // nobody is connected, it's not really an error.
            if (api == BufferQueueCore::NO_CONNECTED_API) {
                return NO_ERROR;
            }
        }

        switch (api) {