1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2024-09-19 23:03:53 -04:00

Don't call shared_from_this() from a destructor

This commit is contained in:
Eelco Dolstra 2016-06-03 14:01:47 +02:00
parent 30c8c3ba2d
commit 080d607975

View file

@ -3081,7 +3081,7 @@ SubstitutionGoal::~SubstitutionGoal()
try {
if (thr.joinable()) {
thr.join();
worker.childTerminated(shared_from_this());
//worker.childTerminated(shared_from_this()); // FIXME
}
} catch (...) {
ignoreException();