Markus Mäkelä ad5762a2fb
Fix debug assertion on shutdown
The debug assertion that asserts that services are destroyed only on the
main worker would be triggered on shutdown as there is no current worker
at that point in time. In addition to this, it is wrong to call
service_destroy at shutdown as that will remove persisted
configurations. The service_free function can be called directly as we
know no other thread are running when the services are being torn down.

Also added the missing check that the destroyInstance function is
implemented before calling it.
2018-07-31 22:32:31 +03:00
..
2018-07-31 22:32:31 +03:00
2018-04-23 14:02:54 +03:00
2018-06-25 10:07:52 +03:00
2017-01-16 10:56:33 +02:00