mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-09-01 18:01:06 +02:00
neutrino.cpp: force adding shutdown event after record stop,
in case soft-standby by power key disabled but box mode switched to standby to finish record
Origin commit data
------------------
Branch: ni/coolstream
Commit: 0debbfcc7c
Author: [CST] Focus <focus.cst@gmail.com>
Date: 2015-01-15 (Thu, 15 Jan 2015)
------------------
This commit was generated by Migit
This commit is contained in:
@@ -117,6 +117,7 @@
|
||||
#include <system/sysload.h>
|
||||
|
||||
#include <timerdclient/timerdclient.h>
|
||||
#include <timerd/timermanager.h>
|
||||
|
||||
#include <zapit/debug.h>
|
||||
#include <zapit/zapit.h>
|
||||
@@ -2746,8 +2747,14 @@ int CNeutrinoApp::handleMsg(const neutrino_msg_t _msg, neutrino_msg_data_t data)
|
||||
/* shuts down the system even if !g_settings.shutdown_real_rcdelay (see below) */
|
||||
gettimeofday(&standby_pressed_at, NULL);
|
||||
|
||||
if ((mode != mode_standby) && (g_settings.shutdown_real) && !recordingstatus) {
|
||||
new_msg = NeutrinoMessages::SHUTDOWN;
|
||||
if ((mode != mode_standby) && (g_settings.shutdown_real)) {
|
||||
CRecordManager::getInstance()->StopAutoRecord();
|
||||
if(CRecordManager::getInstance()->RecordingStatus()) {
|
||||
new_msg = NeutrinoMessages::STANDBY_ON;
|
||||
CTimerManager::getInstance()->wakeup = true;
|
||||
g_RCInput->firstKey = false;
|
||||
} else
|
||||
new_msg = NeutrinoMessages::SHUTDOWN;
|
||||
}
|
||||
else {
|
||||
new_msg = (mode == mode_standby) ? NeutrinoMessages::STANDBY_OFF : NeutrinoMessages::STANDBY_ON;
|
||||
|
Reference in New Issue
Block a user