0
0
mirror of https://github.com/OpenVPN/openvpn3.git synced 2024-09-20 20:13:05 +02:00

servproto : push_halt_restart_msg() needs to ensure

that time is up-to-date.
This commit is contained in:
James Yonan 2016-04-14 13:38:47 -06:00
parent c6a78ee27b
commit 71cb95c436

View File

@ -384,6 +384,8 @@ namespace openvpn {
if (halt || did_client_halt_restart)
return;
Base::update_now();
BufferPtr buf(new BufferAllocated(128, BufferAllocated::GROW));
BufferStreamOut os(*buf);
@ -494,7 +496,7 @@ namespace openvpn {
Base::housekeeping();
if (Base::invalidated())
invalidation_error(Base::invalidation_reason());
else if (now() > disconnect_at)
else if (now() >= disconnect_at)
error("disconnect triggered");
else
set_housekeeping_timer();