From 384a181b4f966669e1df3338b92727697d48b48e Mon Sep 17 00:00:00 2001 From: Eric Heien Date: Thu, 6 Mar 2003 18:58:22 +0000 Subject: [PATCH] net_sleep suspend functionality svn path=/trunk/boinc/; revision=1024 --- client/client_state.C | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/client/client_state.C b/client/client_state.C index c16b5ef01a..50b0c6ed30 100644 --- a/client/client_state.C +++ b/client/client_state.C @@ -401,7 +401,12 @@ static void print_log(char* p) { } int CLIENT_STATE::net_sleep(double x) { - return net_xfers->net_sleep(x); + if (activities_suspended) { + boinc_sleep((int)ceil(x)); + return 0; + } else { + return net_xfers->net_sleep(x); + } } // do_something polls each of the client's finite-state machine layers,