From 1a56c64e3e84ee2e5847d3a458eb62a26d3270f0 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Wed, 12 Jul 2006 00:01:28 +0000 Subject: [PATCH] suspend/resume with ctrl-C on Windows now works svn path=/trunk/boinc/; revision=10630 --- client/main.C | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/client/main.C b/client/main.C index 96dd0c1e9f..8c41f6a453 100644 --- a/client/main.C +++ b/client/main.C @@ -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