From 5741982aba2bbf110b6dd42fec09efe329214a52 Mon Sep 17 00:00:00 2001 From: Martin Pulec Date: Thu, 21 Nov 2019 08:48:34 +0100 Subject: [PATCH] state_uv: do not call destructor directly --- src/main.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main.cpp b/src/main.cpp index ee87ca8ec..675ec4cb4 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -156,6 +156,9 @@ struct state_uv { should_exit_thread = thread(should_exit_watcher, this); } ~state_uv() { + stop(); + } + void stop() { if (exited) { return; } @@ -1471,7 +1474,7 @@ cleanup: signal(SIGABRT, SIG_IGN); signal(SIGSEGV, SIG_IGN); - uv.~state_uv(); + uv.stop(); common_cleanup(init); printf("Exit\n");