diff options
Diffstat (limited to 'source3/nameannounce.c')
-rw-r--r-- | source3/nameannounce.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/nameannounce.c b/source3/nameannounce.c index e4ef868bb6f..63dfc1555b0 100644 --- a/source3/nameannounce.c +++ b/source3/nameannounce.c @@ -421,7 +421,8 @@ void announce_master(void) time_t t = time(NULL); BOOL am_master = False; /* are we a master of some sort? :-) */ - if (last && (t-last < CHECK_TIME_MST_ANNOUNCE * 60)) + if (!last) last = t; + if (t-last < CHECK_TIME_MST_ANNOUNCE * 60) return; last = t; |