mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-03-10 11:28:27 +01:00
Should fix the segfault at exit
This commit is contained in:
parent
670508016b
commit
82bd8cc69f
1 changed files with 4 additions and 0 deletions
4
Queue.h
4
Queue.h
|
@ -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 ()
|
||||||
|
|
Loading…
Add table
Reference in a new issue