zapit: fix ordering of cleanup stuff

Origin commit data
------------------
Commit: ba4298b119
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2013-05-24 (Fri, 24 May 2013)
This commit is contained in:
Stefan Seyfried
2013-05-24 16:57:16 +02:00
committed by [CST] Focus
parent bb52ce2f56
commit 1e1b2e97da

View File

@@ -2434,13 +2434,6 @@ void CZapit::run()
INFO("demuxes/decoders deleted");
delete CFEManager::getInstance();
INFO("frontend(s) deleted");
if (ca) {
INFO("stopping CA");
ca->Stop();
delete ca;
}
#ifdef EXIT_CLEANUP
INFO("cleanup...");
delete eventServer;
@@ -2448,6 +2441,13 @@ void CZapit::run()
delete CServiceManager::getInstance();
delete CServiceScan::getInstance();
#endif
delete CFEManager::getInstance();
INFO("frontend(s) deleted");
if (ca) {
INFO("stopping CA");
ca->Stop();
delete ca;
}
INFO("shutdown complete");
return;
}