1
0
Fork 0

move stopping more down

This commit is contained in:
jsteemann 2019-05-16 13:52:46 +02:00
parent 73a7990a31
commit 01dad862a4
1 changed files with 4 additions and 4 deletions

View File

@ -110,10 +110,6 @@ void GeneralServer::stopListening() {
}
void GeneralServer::stopWorking() {
for (auto& context : _contexts) {
context.stop();
}
_listenTasks.clear();
while (true) {
@ -132,6 +128,10 @@ void GeneralServer::stopWorking() {
LOG_TOPIC("9b8ac", WARN, Logger::FIXME) << "- our friend is: " << it.first << " -> " << it.second.get();
}
}
for (auto& context : _contexts) {
context.stop();
}
}
// -----------------------------------------------------------------------------