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

Commit 6463888c authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "AAudio: log warning when calling stop but the thread is not started."

parents d6186840 3b759c68
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -75,7 +75,9 @@ aaudio_result_t AAudioThread::start(Runnable *runnable) {

aaudio_result_t AAudioThread::stop() {
    if (!mHasThread) {
        ALOGE("stop() but no thread running");
        // There can be cases that the thread is just created but not started.
        // Logging as warning to attract attention but not too serious.
        ALOGW("stop() but no thread running");
        return AAUDIO_ERROR_INVALID_STATE;
    }