fix(web): disconnect only the disabled client instead of all sessions (#5138)
This commit is contained in:
@@ -405,6 +405,7 @@ namespace stream {
|
||||
} control;
|
||||
|
||||
std::uint32_t launch_session_id;
|
||||
std::string client_cert;
|
||||
|
||||
safe::mail_raw_t::event_t<bool> shutdown_event;
|
||||
safe::signal_t controlEnd;
|
||||
@@ -1902,6 +1903,10 @@ namespace stream {
|
||||
return session.state.load(std::memory_order_relaxed);
|
||||
}
|
||||
|
||||
const std::string &client_cert(session_t &session) {
|
||||
return session.client_cert;
|
||||
}
|
||||
|
||||
void stop(session_t &session) {
|
||||
while_starting_do_nothing(session.state);
|
||||
auto expected = state_e::RUNNING;
|
||||
@@ -2009,6 +2014,7 @@ namespace stream {
|
||||
|
||||
session->shutdown_event = mail->event<bool>(mail::shutdown);
|
||||
session->launch_session_id = launch_session.id;
|
||||
session->client_cert = launch_session.client_cert;
|
||||
|
||||
session->config = config;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user