- 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
This commit is contained in:
Rom Walton 2009-07-23 19:56:17 +00:00
parent ed797510e4
commit 050be1650f
2 changed files with 10 additions and 2 deletions

View File

@ -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

View File

@ -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) {