reference: update leap status right after leap second

Don't wait for the next update, there may not be any before the end of
the day.
This commit is contained in:
Miroslav Lichvar 2015-03-24 18:04:09 +01:00
parent 3f9691baff
commit bb21841659

View file

@ -683,6 +683,14 @@ leap_end_timeout(void *arg)
{ {
leap_timer_running = 0; leap_timer_running = 0;
leap_in_progress = 0; leap_in_progress = 0;
our_leap_sec = 0;
if (leap_mode == REF_LeapModeSystem)
LCL_SetSystemLeap(0);
if (our_leap_status == LEAP_InsertSecond ||
our_leap_status == LEAP_DeleteSecond)
our_leap_status = LEAP_Normal;
} }
/* ================================================== */ /* ================================================== */