Don't destroy PlacefileLayer or PlacefileManager until background tasks have completed

This commit is contained in:
Dan Paulat 2023-09-17 23:08:16 -05:00
parent 47c1bce993
commit 827a0eacf5
2 changed files with 2 additions and 2 deletions

View file

@ -45,7 +45,7 @@ public:
class PlacefileRecord; class PlacefileRecord;
explicit Impl(PlacefileManager* self) : self_ {self} {} explicit Impl(PlacefileManager* self) : self_ {self} {}
~Impl() {} ~Impl() { threadPool_.join(); }
void InitializePlacefileSettings(); void InitializePlacefileSettings();
void ReadPlacefileSettings(); void ReadPlacefileSettings();

View file

@ -42,7 +42,7 @@ public:
{ {
ConnectSignals(); ConnectSignals();
} }
~Impl() = default; ~Impl() { threadPool_.join(); }
void ConnectSignals(); void ConnectSignals();