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

Commit a6dd6e3a 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

am: 26fd4307

* commit '26fd4307':
  Fix warning when force-disconnect but there is no connected API
parents 24d0138e 26fd4307
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) {