Destroy workers after services

The workers need to be destroyed only after services have been
to ensure that they are around in case the destruction of services
involves the closing of dcbs.
This commit is contained in:
Johan Wikman 2017-09-04 16:01:42 +03:00
parent 2f0292fd68
commit 2da7a93473

View File

@ -2139,14 +2139,14 @@ int main(int argc, char **argv)
worker->join();
}
Worker::finish();
MessageQueue::finish();
/*<
* Destroy the router and filter instances of all services.
*/
service_destroy_instances();
Worker::finish();
MessageQueue::finish();
/*<
* Wait the flush thread.
*/