This commit is contained in:
Michael Davidsaver
2020-04-24 09:16:14 -07:00
parent 88d23a0314
commit 1a462617a4
3 changed files with 6 additions and 4 deletions
+2 -2
View File
@@ -55,8 +55,8 @@ Server::Server(const Config& conf)
// external
pvt.reset(internal.get(), [internal](Pvt*) mutable {
internal->stop();
internal.reset();
auto trash(std::move(internal));
trash->stop();
});
// we don't keep a weak_ptr to the external reference.
// Caller is entirely responsible for keeping this server running