testChannelAccess/testServer: more stable shutdown

This commit is contained in:
Matej Sekoranja
2014-04-10 11:23:31 +02:00
parent f3f54fd6cf
commit 29c5fb1804
3 changed files with 13 additions and 7 deletions

View File

@@ -2617,9 +2617,16 @@ void testServer(int timeToRun)
unregisterChannelProviderFactory(factory);
structureChangedListeners.clear();
structureStore.clear();
{
Lock guard(structureStoreMutex);
structureStore.clear();
}
ctx.reset();
unregisterChannelProviderFactory(factory);
shutdownSimADCs();
}
void testServerShutdown()
@@ -2690,8 +2697,6 @@ int main(int argc, char *argv[])
testServer(timeToRun);
shutdownSimADCs();
cout << "Done" << endl;
if (cleanupAndReport)