From 82bd8cc69fb593522c23c5b8721049408af4f2aa Mon Sep 17 00:00:00 2001 From: Meeh Date: Wed, 5 Feb 2014 00:15:42 +0100 Subject: [PATCH] Should fix the segfault at exit --- Queue.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Queue.h b/Queue.h index ae60f099..449ff806 100644 --- a/Queue.h +++ b/Queue.h @@ -99,6 +99,10 @@ namespace util public: MsgQueue (): m_Thread (std::bind (&MsgQueue::Run, this)) {}; + void Stop() + { + m_Thread.detach(); + } private: void Run ()