diff --git a/client/app_control.cpp b/client/app_control.cpp index c4d7bf7a15..9b77f39aec 100644 --- a/client/app_control.cpp +++ b/client/app_control.cpp @@ -1056,6 +1056,23 @@ void ACTIVE_TASK_SET::suspend_all(int reason) { for (unsigned int i=0; itask_state()) { + case PROCESS_EXECUTING: + case PROCESS_SUSPENDED: + break; + default: + continue; + } + // handle CPU throttling separately // if (reason == SUSPEND_REASON_CPU_THROTTLE) { @@ -1484,4 +1501,3 @@ void ACTIVE_TASK::read_task_state_file() { } } } -