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:
parent
c6a78ee27b
commit
71cb95c436
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user