Fix main GC thread exiting
This commit is contained in:
parent
e0936ae38f
commit
ac54c6faa6
|
@ -538,8 +538,10 @@ void LocalStore::collectGarbage(const GCOptions & options, GCResults & results)
|
||||||
Finally cleanup([&]() {
|
Finally cleanup([&]() {
|
||||||
auto conn(connections.lock());
|
auto conn(connections.lock());
|
||||||
auto i = conn->find(fdClient.get());
|
auto i = conn->find(fdClient.get());
|
||||||
|
if (i != conn->end()) {
|
||||||
i->second.detach();
|
i->second.detach();
|
||||||
conn->erase(i);
|
conn->erase(i);
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
while (true) {
|
while (true) {
|
||||||
|
|
Loading…
Reference in a new issue