X-Git-Url: https://gitweb.factorcode.org/gitweb.cgi?p=factor.git;a=blobdiff_plain;f=basis%2Fcore-foundation%2Frun-loop%2Frun-loop.factor;h=6446eacd08045d3cf91e9e485a0f5c8a22ad3829;hp=a63a3ea6747af3ca3be40ab72fb4b2c5fa61c3c8;hb=3f3d57032bf29190e9bee12d168a4bce6d74653c;hpb=cd1bb8f4c8afba318249c7b756a45aa1c46ea51e diff --git a/basis/core-foundation/run-loop/run-loop.factor b/basis/core-foundation/run-loop/run-loop.factor index a63a3ea674..6446eacd08 100644 --- a/basis/core-foundation/run-loop/run-loop.factor +++ b/basis/core-foundation/run-loop/run-loop.factor @@ -103,7 +103,7 @@ TUPLE: run-loop fds sources timers ; : (reset-timer) ( timer counter -- ) yield { { [ dup 0 = ] [ now ((reset-timer)) ] } - { [ run-queue deque-empty? not ] [ 1- (reset-timer) ] } + { [ run-queue deque-empty? not ] [ 1 - (reset-timer) ] } { [ sleep-queue heap-empty? ] [ 5 minutes hence ((reset-timer)) ] } [ sleep-queue heap-peek nip micros>timestamp ((reset-timer)) ] } cond ;