fix agent event loop spinning lol
This commit is contained in:
parent
f9486817ed
commit
600f09629d
|
@ -246,7 +246,9 @@
|
|||
(define line-match (regexp-match-evt #px"^[^\n]*\n" out))
|
||||
(define eof-e (eof-evt out))
|
||||
(let loop ([reached-eof #f] [proc-done #f])
|
||||
(match (sync/enable-break proc line-match eof-e)
|
||||
(match (sync/enable-break (if proc-done never-evt proc)
|
||||
(if reached-eof never-evt line-match)
|
||||
(if reached-eof never-evt eof-e))
|
||||
[(== proc)
|
||||
(unless reached-eof
|
||||
(loop reached-eof #t))]
|
||||
|
|
Loading…
Reference in New Issue