public async Task StopScreenReading() { #if ANYCPU #else //Allow windows to sleep again var res = WindowsApi.SetThreadExecutionState(WindowsApi.EXECUTION_STATE.ES_CONTINUOUS); #endif _screen.StopScreenLoop(); if (_config.Model.hueSettings.useHue) { await _hueClient.OnStopReading(); } _isScreenStarted = false; _input.ResetConsole(); }