added destructor in RsTickingThread calling for fullstop, which prevents the crash due to threads being killed when still running

This commit is contained in:
csoler 2019-08-30 21:44:05 +02:00
parent a51259beb5
commit 7d9db1fc22
No known key found for this signature in database
GPG Key ID: 7BCA522266C0804C
2 changed files with 5 additions and 0 deletions

View File

@ -236,6 +236,10 @@ RsTickingThread::RsTickingThread()
#endif #endif
} }
RsTickingThread::~RsTickingThread()
{
fullstop();
}
void RsSingleJobThread::runloop() void RsSingleJobThread::runloop()
{ {
run() ; run() ;

View File

@ -287,6 +287,7 @@ class RsTickingThread: public RsThread
{ {
public: public:
RsTickingThread(); RsTickingThread();
virtual ~RsTickingThread();
void shutdown(); void shutdown();
void fullstop(); void fullstop();