File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -221,12 +221,6 @@ kphp::coro::task<> InstanceState::run_instance_epilogue() noexcept {
221221 }
222222 shutdown_state_ = shutdown_state::finished;
223223
224- // Stop session with internal Web component
225- if (auto & web_state{WebInstanceState::get ()}; web_state.session .has_value ()) {
226- web_state.session_is_finished = true ;
227- web_state.session .reset ();
228- }
229-
230224 /*
231225 * Unlike regular RPC requests whose results the user code waits for via rpc_fetch_responses,
232226 * thereby guaranteeing they are sent, the user code does not wait for requests sent with the
@@ -244,4 +238,10 @@ kphp::coro::task<> InstanceState::run_instance_epilogue() noexcept {
244238 while (!ignore_answer_request_await_set.empty ()) {
245239 co_await ignore_answer_request_await_set.next ();
246240 }
241+
242+ // Stop session with internal Web component
243+ if (auto & web_state{WebInstanceState::get ()}; web_state.session .has_value ()) {
244+ web_state.session_is_finished = true ;
245+ web_state.session .reset ();
246+ }
247247}
You can’t perform that action at this time.
0 commit comments