Browse Source

More explicit error message on rtcCleanup() timeout

Paul-Louis Ageneau 3 years ago
parent
commit
f67f464545
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/capi.cpp

+ 1 - 1
src/capi.cpp

@@ -1367,7 +1367,7 @@ void rtcCleanup() {
 	try {
 		eraseAll();
 		if(rtc::Cleanup().wait_for(10s) == std::future_status::timeout)
-			throw std::runtime_error("Cleanup timeout");
+			throw std::runtime_error("Cleanup timeout (possible deadlock or undestructible object)");
 
 	} catch (const std::exception &e) {
 		PLOG_ERROR << e.what();