Ticket #6066: 6060_1-1.diff
File 6060_1-1.diff, 1.2 KB (added by , 15 years ago) |
---|
-
programs/mythbackend/scheduler.cpp
2149 2149 QDateTime restarttime = nextRecording->recstartts.addSecs((-1) * 2150 2150 prerollseconds); 2151 2151 2152 int idleWaitForRecordingTime = 2153 gContext->GetNumSetting("idleWaitForRecordingTime", 15); 2154 2155 2152 2156 int add = gContext->GetNumSetting("StartupSecsBeforeRecording", 240); 2153 2157 if (add) 2154 2158 restarttime = restarttime.addSecs((-1) * add); 2155 2159 2160 2161 if (restarttime < QDateTime().addSecs(idleWaitForRecordingTime * 60)) 2162 { 2163 VERBOSE(VB_IMPORTANT, "Not shutting down! Too close to beginning of recording!"); 2164 idleSince = QDateTime(); 2165 m_isShuttingDown = false; 2166 return; 2167 } 2168 2169 2156 2170 QString wakeup_timeformat = gContext->GetSetting("WakeupTimeFormat", 2157 2171 "hh:mm yyyy-MM-dd"); 2158 2172 QString setwakeup_cmd = gContext->GetSetting("SetWakeuptimeCommand",