diff --git a/libretroshare/src/util/rsthreads.cc b/libretroshare/src/util/rsthreads.cc index ceaf57368..e474633f7 100644 --- a/libretroshare/src/util/rsthreads.cc +++ b/libretroshare/src/util/rsthreads.cc @@ -25,6 +25,7 @@ #include // for errno #include #include "util/rstime.h" +#include "util/rsdebug.h" #include "util/rstime.h" @@ -107,8 +108,7 @@ RsThread::~RsThread() { 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(); } }