0
0
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:
James Yonan 2016-01-18 15:19:31 -07:00 committed by Lev Stipakov
parent cb37d11424
commit c77bd04c8b
No known key found for this signature in database
GPG Key ID: 88670BE258B9C258

View File

@ -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 (...)
{