This fixes the dedicatedidle console variable not taking disconnected players into account and the timer not resetting when the functionality gets toggled.
dedicatedidle