Fix bug #6224 - nmbd waits 5 minutes at startup before checking if it needs to run...
[jra/samba/.git] / source3 / nmbd / nmbd_elections.c
index b50d215..1ed64f4 100644 (file)
@@ -130,9 +130,6 @@ void check_master_browser_exists(time_t t)
        struct subnet_record *subrec;
        const char *workgroup_name = lp_workgroup();
 
-       if (!lastrun)
-               lastrun = t;
-
        if (t < (lastrun + (CHECK_TIME_MST_BROWSE * 60)))
                return;