Преглед на файлове

More explicit error message on rtcCleanup() timeout

Paul-Louis Ageneau преди 4 години
родител
ревизия
f67f464545
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      src/capi.cpp

+ 1 - 1
src/capi.cpp

@@ -1367,7 +1367,7 @@ void rtcCleanup() {
 	try {
 	try {
 		eraseAll();
 		eraseAll();
 		if(rtc::Cleanup().wait_for(10s) == std::future_status::timeout)
 		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) {
 	} catch (const std::exception &e) {
 		PLOG_ERROR << e.what();
 		PLOG_ERROR << e.what();