X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=recv_common.c;h=3fe2a139e0b6a6b270dce5e548e18d76d63ae1aa;hp=6f3fc57590eb40e1818df28190640d29773c4ca2;hb=75d545612d8fb51b7e6b2f8a7349b54502004cfa;hpb=9b565c60fd159e12d255bb18db9dbff066deebea diff --git a/recv_common.c b/recv_common.c index 6f3fc575..3fe2a139 100644 --- a/recv_common.c +++ b/recv_common.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 2006-2010 Andre Noll + * Copyright (C) 2006-2011 Andre Noll * * Licensed under the GPL v2. For licencing details see COPYING. */ @@ -129,9 +129,7 @@ int generic_recv_pre_select(struct sched *s, struct task *t) int ret = btr_node_status(rn->btrn, 0, BTR_NT_ROOT); t->error = 0; - if (ret < 0) { - s->timeout.tv_sec = 0; - s->timeout.tv_usec = 1; - } + if (ret < 0) + sched_min_delay(s); return ret; }