mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
added destructor in RsTickingThread calling for fullstop, which prevents the crash due to threads being killed when still running
This commit is contained in:
parent
a51259beb5
commit
7d9db1fc22
@ -236,6 +236,10 @@ RsTickingThread::RsTickingThread()
|
||||
#endif
|
||||
}
|
||||
|
||||
RsTickingThread::~RsTickingThread()
|
||||
{
|
||||
fullstop();
|
||||
}
|
||||
void RsSingleJobThread::runloop()
|
||||
{
|
||||
run() ;
|
||||
|
@ -287,6 +287,7 @@ class RsTickingThread: public RsThread
|
||||
{
|
||||
public:
|
||||
RsTickingThread();
|
||||
virtual ~RsTickingThread();
|
||||
|
||||
void shutdown();
|
||||
void fullstop();
|
||||
|
Loading…
Reference in New Issue
Block a user