X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=recv_common.c;h=6517948d4cd9d1638eed2e50271e46fbce73a62b;hp=b496f4e4b823eb02b449289f00c23bc193cac4f7;hb=2ef39ae4d1e6b0d95991d2b980621fb152211444;hpb=eecc102ad0abeb0335fe994bb72031a15b9090d7 diff --git a/recv_common.c b/recv_common.c index b496f4e4..6517948d 100644 --- a/recv_common.c +++ b/recv_common.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 2006-2009 Andre Noll + * Copyright (C) 2006-2010 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; }