Skip to content

Commit

Permalink
Merge pull request #291 from vktr/f/fix-sleep-issue
Browse files Browse the repository at this point in the history
Allow computer to sleep when user-initiated
  • Loading branch information
vktr committed May 16, 2016
2 parents 91550c3 + 53119f3 commit dfe69d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/client/ui/sleep_manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ void sleep_manager::refresh(bool hasActiveDownloads)
{
// Prevent sleeping
LOG(info) << "Preventing computer from sleeping";
EXECUTION_STATE state = SetThreadExecutionState(ES_CONTINUOUS | ES_SYSTEM_REQUIRED | ES_AWAYMODE_REQUIRED);
EXECUTION_STATE state = SetThreadExecutionState(ES_CONTINUOUS | ES_SYSTEM_REQUIRED);
if (state == NULL)
{
LOG(error) << "Could not prevent computer from sleeping.";
Expand Down

0 comments on commit dfe69d8

Please sign in to comment.