I did it again:
only multiply timeout by 1000 if it's a number.
This commit is contained in:
parent
19afd32221
commit
00e8147657
|
@ -840,7 +840,8 @@
|
|||
|
||||
(call-with-values
|
||||
(lambda ()
|
||||
(wait-for-channels read-channels write-channels (* 1000 timeout)))
|
||||
(wait-for-channels read-channels write-channels
|
||||
(and timeout (* 1000 timeout))))
|
||||
;; re-enables interrupts
|
||||
(lambda (ready-read-channels ready-write-channels)
|
||||
(let ((ready-read-port/fds '())
|
||||
|
@ -920,7 +921,8 @@
|
|||
|
||||
(call-with-values
|
||||
(lambda ()
|
||||
(wait-for-channels read-channels write-channels (* 1000 timeout)))
|
||||
(wait-for-channels read-channels write-channels
|
||||
(and timeout (* 1000 timeout))))
|
||||
;; re-enables interrupts
|
||||
(lambda (ready-read-channels ready-write-channels)
|
||||
|
||||
|
@ -1019,7 +1021,8 @@
|
|||
|
||||
(call-with-values
|
||||
(lambda ()
|
||||
(wait-for-channels read-channels write-channels (* 1000 timeout)))
|
||||
(wait-for-channels read-channels write-channels
|
||||
(and timeout (* 1000 timeout))))
|
||||
;; re-enables interrupts
|
||||
(lambda (ready-read-channels ready-write-channels)
|
||||
(append (filter (lambda (read-port)
|
||||
|
|
Loading…
Reference in New Issue