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

Commit 761e3332 authored by Automerger Merge Worker's avatar Automerger Merge Worker
Browse files

Merge "gd: Fix reactor race condition" am: 0ec53fe7 am: 171b2292 am: 9f6c232f

Change-Id: I476badfc738ff6fe972565471af5a270a4e3352f
parents 3c42812e 9f6c232f
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -124,7 +124,6 @@ void Reactor::Run() {
      {
        std::lock_guard<std::mutex> reactable_lock(reactable->mutex_);
        reactable->is_executing_ = false;
      }
        if (reactable->removed_) {
          reactable->finished_promise_->set_value();
          delete reactable;
@@ -132,6 +131,7 @@ void Reactor::Run() {
      }
    }
  }
}

void Reactor::Stop() {
  if (!is_running_) {