Client.cpp: fix data race
GitOrigin-RevId: f2432676c697aef05a3047959ac987aa46e37b0b
This commit is contained in:
parent
25f3626aca
commit
a1bc213f90
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user