From ab4ba71f3e16c393b61cde313d201d42dc5c47f2 Mon Sep 17 00:00:00 2001 From: James Rowe Date: Sat, 24 Feb 2018 17:41:15 -0700 Subject: [PATCH] fixup! Prevent crashes on closing by waiting for the impl thread --- src/common/logging/backend.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/common/logging/backend.cpp b/src/common/logging/backend.cpp index cae48d9f3a..ef530e3ee3 100644 --- a/src/common/logging/backend.cpp +++ b/src/common/logging/backend.cpp @@ -84,6 +84,7 @@ private: } ~Impl() { running = false; + backend_thread.get(); } std::atomic_bool running{true};