suspend/resume with ctrl-C on Windows now works

svn path=/trunk/boinc/; revision=10630
This commit is contained in:
David Anderson 2006-07-12 00:01:28 +00:00
parent 873994afad
commit 1a56c64e3e
1 changed files with 4 additions and 4 deletions

View File

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