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

Commit 0ec53fe7 authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "gd: Fix reactor race condition"

parents ea4b7371 e7a119a6
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_) {