mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-09-08 06:08:36 +02:00
no shutdown if streaming (thx dbo)
prevent shutdown from timer if stb is started from deep standby > does a timer-record > and meanwhile streaming (eg. localTV or via web-if to PC) is active Signed-off-by: Thilo Graf <dbt@novatux.de>
This commit is contained in:
@@ -3497,6 +3497,8 @@ int CNeutrinoApp::handleMsg(const neutrino_msg_t _msg, neutrino_msg_data_t data)
|
|||||||
skipShutdownTimer = (ShowMsg(LOCALE_MESSAGEBOX_INFO, LOCALE_SHUTDOWNTIMER_ANNOUNCE, CMsgBox::mbrNo, CMsgBox::mbYes | CMsgBox::mbNo, NULL, 450, 5) == CMsgBox::mbrYes);
|
skipShutdownTimer = (ShowMsg(LOCALE_MESSAGEBOX_INFO, LOCALE_SHUTDOWNTIMER_ANNOUNCE, CMsgBox::mbrNo, CMsgBox::mbYes | CMsgBox::mbNo, NULL, 450, 5) == CMsgBox::mbrYes);
|
||||||
}
|
}
|
||||||
else if( msg == NeutrinoMessages::SHUTDOWN ) {
|
else if( msg == NeutrinoMessages::SHUTDOWN ) {
|
||||||
|
if(CStreamManager::getInstance()->StreamStatus())
|
||||||
|
skipShutdownTimer = true;
|
||||||
if(!skipShutdownTimer) {
|
if(!skipShutdownTimer) {
|
||||||
ExitRun(g_info.hw_caps->can_shutdown);
|
ExitRun(g_info.hw_caps->can_shutdown);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user