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

Commit ead6b76c authored by Jorge E. Moreira's avatar Jorge E. Moreira Committed by Myles Watson
Browse files

test_vendor: Make tryStartThread return 0 on success

Test: Start the test vendor library with no error message
Bug: 34357009
Change-Id: Id2821199ad675e2b95a9f333afa803dcced811a3
parent 65b2a57b
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -415,9 +415,10 @@ class AsyncManager::AsyncTaskManager {
    thread_ = std::thread([this]() { ThreadRoutine(); });
    if (!thread_.joinable()) {
      LOG_ERROR(LOG_TAG, "%s: Unable to start task thread", __FUNCTION__);
    }
      return -1;
    }
    return 0;
  }

  void ThreadRoutine() {
    while (1) {