X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?p=xscreensaver;a=blobdiff_plain;f=driver%2Flock.c;h=7c92be60d6375bda6dbb69c47191d1ab833919ef;hp=564998450828f78af6d9f9375b72795f300c6bf9;hb=6afd6db0ae9396cd7ff897ade597cd5483f49b0e;hpb=dba664f31aa87285db4d76cf8c5e66335299703a diff --git a/driver/lock.c b/driver/lock.c index 56499845..7c92be60 100644 --- a/driver/lock.c +++ b/driver/lock.c @@ -2193,6 +2193,11 @@ auth_finished_cb (saver_info *si) s = buf; } si->unlock_failures = 0; + + /* ignore failures if they all were too recent */ + if (time((time_t *) 0) - si->unlock_failure_time + < si->prefs.auth_warning_slack) + goto END; } else /* good, with no failures, */ goto END; /* or timeout, or cancel. */