QUIC needs termination without session
This commit is contained in:
parent
31a4628034
commit
5d9d35a6f5
|
@ -838,7 +838,9 @@ void Client::terminate_session() {
|
|||
if (config.is_quic()) {
|
||||
quic.close_requested = true;
|
||||
}
|
||||
session->terminate();
|
||||
if (session) {
|
||||
session->terminate();
|
||||
}
|
||||
// http1 session needs writecb to tear down session.
|
||||
signal_write();
|
||||
}
|
||||
|
@ -1496,7 +1498,7 @@ Worker::~Worker() {
|
|||
|
||||
void Worker::stop_all_clients() {
|
||||
for (auto client : clients) {
|
||||
if (client && client->session) {
|
||||
if (client) {
|
||||
client->terminate_session();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue