aboutsummaryrefslogtreecommitdiffstats
path: root/src/before_exit.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/before_exit.cpp')
-rw-r--r--src/before_exit.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/before_exit.cpp b/src/before_exit.cpp
index 3b0989fa..caf61db1 100644
--- a/src/before_exit.cpp
+++ b/src/before_exit.cpp
@@ -32,7 +32,11 @@
* @brief Actions performed before exiting the application
*
*/
-void before_exit() {
+void before_exit() {
SPDLOG_INFO("called");
+
+ // Under VisualStudio, this must be called before main finishes to workaround
+ // a known VS issue
+ spdlog::drop_all();
spdlog::shutdown();
}