mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-20 11:05:54 +00:00
Generate a fatal error if a running Thread object is destroyed
This commit is contained in:
@@ -42,7 +42,8 @@ Thread::~Thread()
|
||||
*/
|
||||
bassert (! isThreadRunning());
|
||||
|
||||
stopThread (100);
|
||||
if (isThreadRunning())
|
||||
FatalError ("Thread is still running", __FILE__, __LINE__);
|
||||
}
|
||||
|
||||
//==============================================================================
|
||||
|
||||
Reference in New Issue
Block a user