From df203ab874d0ba57244d4f40e9ca847c943c018f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Nusser?= Date: Wed, 10 Feb 2016 12:52:45 +0100 Subject: Call hug_close in desctructor not run. Prevents threading errors. --- drumgizmo/drumgizmoc.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'drumgizmo') diff --git a/drumgizmo/drumgizmoc.cc b/drumgizmo/drumgizmoc.cc index 02d025e..7e493cb 100644 --- a/drumgizmo/drumgizmoc.cc +++ b/drumgizmo/drumgizmoc.cc @@ -100,6 +100,7 @@ CliMain::CliMain() CliMain::~CliMain() { + hug_close(); } void CliMain::handleMessage(Message* msg) @@ -410,8 +411,6 @@ int CliMain::run(int argc, char* argv[]) printf("Quit.\n"); fflush(stdout); - hug_close(); - return 0; } -- cgit v1.2.3