diff --git a/collects/mzlib/cml.ss b/collects/mzlib/cml.ss index 593822f..9eafa5b 100644 --- a/collects/mzlib/cml.ss +++ b/collects/mzlib/cml.ss @@ -43,7 +43,8 @@ (let ([s (make-semaphore)]) (thread-resume (thread/suspend-to-kill (lambda () - (sleep (max 0 (- t (current-seconds)))) + (object-wait-multiple (max 0 (- t (current-seconds))) + nack) (semaphore-post s))) (current-thread)) (make-wrapped-waitable s void)))))