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

Commit 232ba6e5 authored by William Escande's avatar William Escande Committed by Automerger Merge Worker
Browse files

Fix promises not being set to null am: 7e6f5928

parents bc697473 7e6f5928
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -136,8 +136,9 @@ class RoundRobinSchedulerTest : public ::testing::Test {

    packet_count_--;
    if (packet_count_ == 0) {
      packet_promise_->set_value();
      packet_promise_ = nullptr;
      std::promise<void>* prom = packet_promise_.release();
      prom->set_value();
      delete prom;
    }
  }