From 050be1650fb44c4ae303a496bf65903a55ffa852 Mon Sep 17 00:00:00 2001 From: Rom Walton Date: Thu, 23 Jul 2009 19:56:17 +0000 Subject: [PATCH] - client: Treat power events similiar to the snooze events, assign a timeout so that when we resume from suspend/hybernate we restore the previous activity states. client/ main.cpp svn path=/trunk/boinc/; revision=18667 --- checkin_notes | 8 ++++++++ client/main.cpp | 4 ++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/checkin_notes b/checkin_notes index 4d98244088..f088494ebe 100644 --- a/checkin_notes +++ b/checkin_notes @@ -6424,3 +6424,11 @@ Rom 23 July 2009 client/ main.cpp + +Rom 23 July 2009 + - client: Treat power events similiar to the snooze events, assign + a timeout so that when we resume from suspend/hybernate we + restore the previous activity states. + + client/ + main.cpp diff --git a/client/main.cpp b/client/main.cpp index b50b6db667..6aa2e600e9 100644 --- a/client/main.cpp +++ b/client/main.cpp @@ -570,8 +570,8 @@ int boinc_main_loop() { } #ifdef _WIN32 if (requested_suspend) { - gstate.run_mode.set(RUN_MODE_NEVER, 0); - gstate.network_mode.set(RUN_MODE_NEVER, 0); + gstate.run_mode.set(RUN_MODE_NEVER, 3600); + gstate.network_mode.set(RUN_MODE_NEVER, 3600); requested_suspend = false; } if (requested_resume) {