Bounce relay
This commit is contained in:
parent
ed7cf375ad
commit
508e37171d
|
@ -140,6 +140,8 @@
|
||||||
(field [pending1 '()]
|
(field [pending1 '()]
|
||||||
[pending2 '()])
|
[pending2 '()])
|
||||||
|
|
||||||
|
(stop-when (message (terminate (list 'relay node1 node2))))
|
||||||
|
|
||||||
(during (router-connection node1 node1-connid)
|
(during (router-connection node1 node1-connid)
|
||||||
(on (message (router-outbound node1-connid $body))
|
(on (message (router-outbound node1-connid $body))
|
||||||
(pending1 (cons body (pending1)))))
|
(pending1 (cons body (pending1)))))
|
||||||
|
@ -181,6 +183,9 @@
|
||||||
(pause 1 (send! (change-presence 'c1 #f)))
|
(pause 1 (send! (change-presence 'c1 #f)))
|
||||||
(pause 0.2 (send! (change-presence 'c1 #t)))
|
(pause 0.2 (send! (change-presence 'c1 #t)))
|
||||||
|
|
||||||
|
(pause 0.4 (send! (terminate (list 'relay 'n1 'n2))))
|
||||||
|
(pause 0.4 (relay 'n1 'n2))
|
||||||
|
|
||||||
(pause 0.2 (send! (terminate 'c1)))
|
(pause 0.2 (send! (terminate 'c1)))
|
||||||
(pause 0.2 (send! (terminate 'c3)))
|
(pause 0.2 (send! (terminate 'c3)))
|
||||||
(pause 0.2 (send! (terminate 'c2)))
|
(pause 0.2 (send! (terminate 'c2)))
|
||||||
|
|
Loading…
Reference in New Issue