mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-11 20:35:50 +00:00
treat lastTime of 0 as never having checked (not within the interval).
This commit is contained in:
parent
006e3925e9
commit
73bc75ae28
@ -32,7 +32,7 @@
|
||||
*/
|
||||
|
||||
#ifdef DEBUG
|
||||
static const char CVS_ID[] = "@(#) $RCSfile: devslot.c,v $ $Revision: 1.10 $ $Date: 2002/06/24 22:36:53 $ $Name: $";
|
||||
static const char CVS_ID[] = "@(#) $RCSfile: devslot.c,v $ $Revision: 1.11 $ $Date: 2002/07/09 04:40:35 $ $Name: $";
|
||||
#endif /* DEBUG */
|
||||
|
||||
#ifndef NSSCKEPV_H
|
||||
@ -237,7 +237,8 @@ within_token_delay_period(NSSSlot *slot)
|
||||
}
|
||||
time = PR_IntervalNow();
|
||||
lastTime = slot->lastTokenPing;
|
||||
if ((time > lastTime) && ((time - lastTime) < s_token_delay_time)) {
|
||||
if ((lastTime) &&
|
||||
(time > lastTime) && ((time - lastTime) < s_token_delay_time)) {
|
||||
return PR_TRUE;
|
||||
}
|
||||
slot->lastTokenPing = time;
|
||||
|
Loading…
Reference in New Issue
Block a user