mirror of https://github.com/BOINC/boinc.git
suspend/resume with ctrl-C on Windows now works
svn path=/trunk/boinc/; revision=10630
This commit is contained in:
parent
873994afad
commit
1a56c64e3e
|
@ -545,13 +545,13 @@ int boinc_main_loop() {
|
|||
}
|
||||
#ifdef _WIN32
|
||||
if (requested_suspend) {
|
||||
gstate.suspend_tasks(SUSPEND_REASON_USER_REQ);
|
||||
gstate.suspend_network(SUSPEND_REASON_USER_REQ);
|
||||
gstate.user_run_request = USER_RUN_REQUEST_NEVER;
|
||||
gstate.user_network_request = USER_RUN_REQUEST_NEVER;
|
||||
requested_suspend = false;
|
||||
}
|
||||
if (requested_resume) {
|
||||
gstate.resume_tasks();
|
||||
gstate.resume_network();
|
||||
gstate.user_run_request = USER_RUN_REQUEST_AUTO;
|
||||
gstate.user_network_request = USER_RUN_REQUEST_AUTO;
|
||||
requested_resume = false;
|
||||
}
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue