1
0
mirror of https://github.com/PurpleI2P/i2pd.git synced 2025-01-22 04:04:16 +00:00

Should fix the segfault at exit

This commit is contained in:
Meeh 2014-02-05 00:15:42 +01:00
parent 670508016b
commit 82bd8cc69f

View File

@ -99,6 +99,10 @@ namespace util
public: public:
MsgQueue (): m_Thread (std::bind (&MsgQueue<Msg>::Run, this)) {}; MsgQueue (): m_Thread (std::bind (&MsgQueue<Msg>::Run, this)) {};
void Stop()
{
m_Thread.detach();
}
private: private:
void Run () void Run ()