mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 16:31:11 +02:00
- try to fix segfault on neutrino shutdown
This commit is contained in:
@@ -3909,6 +3909,7 @@ void stop_daemons(bool stopall, bool for_flash)
|
||||
}
|
||||
|
||||
if (for_flash) {
|
||||
delete cHddStat::getInstance();
|
||||
delete CRecordManager::getInstance();
|
||||
delete videoDemux;
|
||||
int ret = my_system(4, "mount", "-no", "remount,ro", "/");
|
||||
@@ -3930,6 +3931,7 @@ void sighandler (int signum)
|
||||
switch (signum) {
|
||||
case SIGTERM:
|
||||
case SIGINT:
|
||||
delete cHddStat::getInstance();
|
||||
delete CRecordManager::getInstance();
|
||||
//CNeutrinoApp::getInstance()->saveSetup(NEUTRINO_SETTINGS_FILE);
|
||||
stop_daemons();
|
||||
|
Reference in New Issue
Block a user