(server) attempt to fix broken macOS unittest on travis CI

This commit is contained in:
Benjamin Sergeant 2019-04-22 09:36:16 -07:00
parent 678ee0615d
commit 323684efff

View File

@ -181,14 +181,13 @@ namespace ix
auto& connectionState = it->first; auto& connectionState = it->first;
auto& thread = it->second; auto& thread = it->second;
if (!connectionState->isTerminated() || if (!connectionState->isTerminated())
!thread.joinable())
{ {
++it; ++it;
continue; continue;
} }
thread.join(); if (thread.joinable()) thread.join();
it = _connectionsThreads.erase(it); it = _connectionsThreads.erase(it);
} }
} }