mirror of
https://github.com/OpenVPN/openvpn3.git
synced 2024-09-20 12:12:15 +02:00
WS::ClientSet: check io_context stopped() method before running or persisting
Signed-off-by: James Yonan <james@openvpn.net>
This commit is contained in:
parent
6f10dfdce9
commit
79b6bd15e0
@ -543,7 +543,7 @@ namespace openvpn {
|
||||
cs->new_request(ts);
|
||||
if (sps)
|
||||
{
|
||||
while (cs->clients.size())
|
||||
while (cs->clients.size() && !io_context->stopped())
|
||||
io_context->run_one();
|
||||
}
|
||||
else
|
||||
@ -556,7 +556,7 @@ namespace openvpn {
|
||||
io_context->poll(); // execute completion handlers
|
||||
throw;
|
||||
}
|
||||
if (sps)
|
||||
if (sps && !io_context->stopped())
|
||||
ts->hsc.persist_io_context(std::move(io_context));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user