move reset calls forward
This commit is contained in:
parent
e8463d7005
commit
ac880e4491
|
@ -65,14 +65,12 @@
|
||||||
(define (launch-new-instance full-path req)
|
(define (launch-new-instance full-path req)
|
||||||
(let ((instance-id (generate-new-instance-id))
|
(let ((instance-id (generate-new-instance-id))
|
||||||
(plugin (get-plugin-rt-structure full-path)))
|
(plugin (get-plugin-rt-structure full-path)))
|
||||||
|
(save-instance! full-path instance-id) ; make entry in instance-table
|
||||||
(reset
|
(reset
|
||||||
(begin
|
(begin
|
||||||
(save-instance! full-path instance-id) ; make entry in instance-table
|
|
||||||
(register-session! instance-id 'no-return)
|
(register-session! instance-id 'no-return)
|
||||||
(with-names-from-rt-structure
|
(with-names-from-rt-structure
|
||||||
plugin plugin-interface
|
plugin plugin-interface
|
||||||
;; MAIN may return in another thread, so we have to lookup
|
|
||||||
;; return continuation explicitly
|
|
||||||
(main req))))))
|
(main req))))))
|
||||||
|
|
||||||
;; try to get continuation-table and then the continuation
|
;; try to get continuation-table and then the continuation
|
||||||
|
|
Loading…
Reference in New Issue