aboutsummaryrefslogtreecommitdiffstats
path: root/iolooper-select.c
diff options
context:
space:
mode:
Diffstat (limited to 'iolooper-select.c')
-rw-r--r--iolooper-select.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/iolooper-select.c b/iolooper-select.c
index 955204d..5024c9a 100644
--- a/iolooper-select.c
+++ b/iolooper-select.c
@@ -175,6 +175,8 @@ iolooper_wait( IoLooper* iol, int64_t duration )
if (count == 0)
return 0;
+ CLAMP_MAC_TIMEOUT(duration);
+
if (duration < 0)
tm = NULL;
else {