void SetPowerOptions() { if (mediaStreamers.Count > 0) { PowerHelper.PreventStandby(); } else { PowerHelper.AllowStandby(); } }
void SetPowerOptions() { if (Settings.Default.DebugStreaming) { Functions.WriteLineToLogFile("StreamingManager: nr of mediastreamers=" + mediaStreamers.Count); } if (mediaStreamers.Count > 0) { if (Settings.Default.DebugStreaming) { Functions.WriteLineToLogFile("StreamingManager: so preventing standby"); } PowerHelper.PreventStandby(); } else { if (Settings.Default.DebugStreaming) { Functions.WriteLineToLogFile("StreamingManager: so allowing standby"); } PowerHelper.AllowStandby(); } }