Helmut Auer wrote: > Hello, > > Without testing it, I would guess, that this leads to another problem: > If the shutdown is caused by user inactiviy vdr will shutdown even if a > recording will be within the next xxx minutes. No, the moved part just covers the "Recording in %ld minutes, shut down anyway?" UI question, and this question only appears on manual shutdown. The following block in the code covers automatic shutdown: if (!Next || Delta > Setup.MinEventTimeout * 60 || ForceShutdown) > I have posted another fix here: > http://www.htpc-forum.de/forum/index.php?act=ST&f=12&t=2387&st=0&#entry15177 Since you query cPluginManager::Active() twice (no comment on style...) to differentiate between no activity and confirmed shutdown, you're setting UserShutdown=true and ForceShutdown=false the old way if no questions were asked. So why do you need to modify the "Recording in..." block at all? Cheers, Udo