changed std::cerr to the new RsErr() method

This commit is contained in:
csoler 2019-05-12 11:00:33 +02:00
parent 1cee069243
commit 2748275397
No known key found for this signature in database
GPG Key ID: 7BCA522266C0804C

View File

@ -25,6 +25,7 @@
#include <errno.h> // for errno #include <errno.h> // for errno
#include <iostream> #include <iostream>
#include "util/rstime.h" #include "util/rstime.h"
#include "util/rsdebug.h"
#include "util/rstime.h" #include "util/rstime.h"
@ -107,8 +108,7 @@ RsThread::~RsThread()
{ {
if(isRunning()) if(isRunning())
{ {
std::cerr << "(EE) Deleting a thread that is actually running! Something is very wrong here:" << std::endl; RsErr() << "Deleting a thread that is still running! Something is very wrong here and Retroshare is likely to crash because of this." << std::endl;
print_stacktrace(); print_stacktrace();
} }
} }