mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-06-23 13:54:27 -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
840402970c
commit
1bf07f72c4
2 changed files with 5 additions and 0 deletions
|
@ -236,6 +236,10 @@ RsTickingThread::RsTickingThread()
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
RsTickingThread::~RsTickingThread()
|
||||||
|
{
|
||||||
|
fullstop();
|
||||||
|
}
|
||||||
void RsSingleJobThread::runloop()
|
void RsSingleJobThread::runloop()
|
||||||
{
|
{
|
||||||
run() ;
|
run() ;
|
||||||
|
|
|
@ -287,6 +287,7 @@ class RsTickingThread: public RsThread
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
RsTickingThread();
|
RsTickingThread();
|
||||||
|
virtual ~RsTickingThread();
|
||||||
|
|
||||||
void shutdown();
|
void shutdown();
|
||||||
void fullstop();
|
void fullstop();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue