Skip to content
Snippets Groups Projects
Commit 5644c34a authored by William Escande's avatar William Escande
Browse files

Fix promises not being set to null

Test: atest RoundRobinSchedulerTest --rerun-until-failure
Fix: 264572812
Change-Id: I598a71b4055ea81469f12a6bccbb0effbe573982
parent b13bff5a
No related branches found
No related tags found
No related merge requests found
...@@ -136,8 +136,9 @@ class RoundRobinSchedulerTest : public ::testing::Test { ...@@ -136,8 +136,9 @@ class RoundRobinSchedulerTest : public ::testing::Test {
packet_count_--; packet_count_--;
if (packet_count_ == 0) { if (packet_count_ == 0) {
packet_promise_->set_value(); std::promise<void>* prom = packet_promise_.release();
packet_promise_ = nullptr; prom->set_value();
delete prom;
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment