mirror of https://github.com/BOINC/boinc.git
- 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:
parent
ed797510e4
commit
050be1650f
|
@ -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
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue