mirror of
https://github.com/OpenVPN/openvpn3.git
synced 2024-09-20 20:13:05 +02:00
In WS::ClientSet::new_request_synchronous(), only use io_context->run_one() when SyncPersistState obj is provided. Otherwise, use io_context->run().
This commit is contained in:
parent
cb37d11424
commit
c77bd04c8b
@ -357,8 +357,13 @@ namespace openvpn {
|
||||
});
|
||||
cs.reset(new ClientSet(*io_context));
|
||||
cs->new_request(ts);
|
||||
while (cs->clients.size())
|
||||
io_context->run_one();
|
||||
if (sps)
|
||||
{
|
||||
while (cs->clients.size())
|
||||
io_context->run_one();
|
||||
}
|
||||
else
|
||||
io_context->run();
|
||||
}
|
||||
catch (...)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user