Run stop-scripts in one scheduled execution
This commit is contained in:
parent
dfe8a3e96e
commit
ce6cd58930
|
@ -437,12 +437,10 @@
|
||||||
|
|
||||||
;; Run stop-scripts after terminating children. This means that
|
;; Run stop-scripts after terminating children. This means that
|
||||||
;; children's stop-scripts run before ours.
|
;; children's stop-scripts run before ours.
|
||||||
(for [(script (in-list (reverse (facet-stop-scripts f))))]
|
(schedule-script! ds ac (lambda ()
|
||||||
(schedule-script! ds
|
(with-current-facet [ds ac f #t]
|
||||||
ac
|
(for [(script (in-list (reverse (facet-stop-scripts f))))]
|
||||||
(lambda ()
|
(script)))))
|
||||||
(with-current-facet [ds ac f #t]
|
|
||||||
(script)))))
|
|
||||||
|
|
||||||
(retract-facet-assertions-and-subscriptions! ds f)
|
(retract-facet-assertions-and-subscriptions! ds f)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue