From 38b09e44c7b0e7a9fd5b3a940c1b1a0537f3ad64 Mon Sep 17 00:00:00 2001 From: Witold Filipczyk Date: Sun, 31 Dec 2006 16:49:52 +0100 Subject: [PATCH] Limit the timeout to one second only under Windows. --- src/util/time.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/util/time.c b/src/util/time.c index 8e0637ea..91463ee5 100644 --- a/src/util/time.c +++ b/src/util/time.c @@ -202,8 +202,10 @@ timeval_limit_to_zero_or_one(timeval_T *t) { if (t->sec < 0) t->sec = 0; if (t->usec < 0) t->usec = 0; +#ifdef CONFIG_OS_WIN32 /* Under Windows I got 300 seconds timeout, so 1 second should not hurt --witekfl */ if (t->sec > 1) t->sec = 1; +#endif } /* Returns 1 if t1 > t2