net_sleep suspend functionality

svn path=/trunk/boinc/; revision=1024
This commit is contained in:
Eric Heien 2003-03-06 18:58:22 +00:00
parent 6ee9cbd283
commit 384a181b4f
1 changed files with 6 additions and 1 deletions

View File

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