Client.cpp: fix data race

GitOrigin-RevId: f2432676c697aef05a3047959ac987aa46e37b0b
This commit is contained in:
Arseny Smirnov 2019-05-20 19:57:28 +03:00
parent 25f3626aca
commit a1bc213f90

View File

@ -177,7 +177,6 @@ class MultiImpl {
scheduler_thread_ = thread([concurrent_scheduler = concurrent_scheduler_] {
while (concurrent_scheduler->run_main(10)) {
}
concurrent_scheduler->finish();
});
}
MultiImpl(const MultiImpl &) = delete;
@ -212,6 +211,7 @@ class MultiImpl {
Scheduler::instance()->finish();
}
scheduler_thread_.join();
concurrent_scheduler_->finish();
}
private: