- adjusted for new expect interface
This commit is contained in:
parent
c7f21da61a
commit
f327192879
|
@ -60,12 +60,11 @@
|
||||||
(expect (option (timeout tmout) ; Timeout in $chat-timeout secs.
|
(expect (option (timeout tmout) ; Timeout in $chat-timeout secs.
|
||||||
(monitor (if cmon
|
(monitor (if cmon
|
||||||
(chat->expect-monitor cmon)
|
(chat->expect-monitor cmon)
|
||||||
(lambda (task event) #f)))) ; No-op
|
(lambda (task event) #f))) ; No-op
|
||||||
|
;; Timeout => Call handler or abort.
|
||||||
;; Expect triggers the monitor for us on timeout.
|
(on-timeout (if (pair? maybe-on-timeout)
|
||||||
(on-timeout (if (pair? maybe-on-timeout) ; Timeout =>
|
((car maybe-on-timeout))
|
||||||
((car maybe-on-timeout)) ; Call handler or
|
(chat-cont 'timeout))))
|
||||||
(chat-cont 'timeout))) ; abort.
|
|
||||||
|
|
||||||
(task (re (m) ; See RE => return false.
|
(task (re (m) ; See RE => return false.
|
||||||
(if cmon (cmon 'found m))
|
(if cmon (cmon 'found m))
|
||||||
|
|
Loading…
Reference in New Issue