Relaxed network grace + fixed annoying warnings

This commit is contained in:
mathusummut
2018-06-23 22:04:15 +02:00
parent 2e9623c8da
commit 3b14f3eb02
13 changed files with 294 additions and 288 deletions

View File

@@ -159,11 +159,11 @@ namespace Shared {
if (Thread::threadList.empty() == false) {
std::vector<Thread *>::iterator iterFind = std::find(Thread::threadList.begin(), Thread::threadList.end(), this);
if (iterFind == Thread::threadList.end()) {
if (this != cleanupThread.get()) {
/*if (this != cleanupThread.get()) {
char szBuf[8096] = "";
snprintf(szBuf, 8095, "In [%s::%s Line: %d] iterFind == Thread::threadList.end() Thread::threadList.size() = %ld", extractFileFromDirectoryPath(__FILE__).c_str(), __FUNCTION__, __LINE__, Thread::threadList.size());
throw megaglest_runtime_error(szBuf);
}
}*/
} else {
Thread::threadList.erase(iterFind);
}