Skip to content

Commit 0150b56

Browse files
authored
move web component block down (#1604)
1 parent 7335ee2 commit 0150b56

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

runtime-light/state/instance-state.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)