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
|
||||
;; children's stop-scripts run before ours.
|
||||
(for [(script (in-list (reverse (facet-stop-scripts f))))]
|
||||
(schedule-script! ds
|
||||
ac
|
||||
(lambda ()
|
||||
(with-current-facet [ds ac f #t]
|
||||
(script)))))
|
||||
(schedule-script! ds ac (lambda ()
|
||||
(with-current-facet [ds ac f #t]
|
||||
(for [(script (in-list (reverse (facet-stop-scripts f))))]
|
||||
(script)))))
|
||||
|
||||
(retract-facet-assertions-and-subscriptions! ds f)
|
||||
|
||||
|
|
Loading…
Reference in New Issue