Negative delay fix
This commit is contained in:
parent
53fd5c3f65
commit
cadfe922c0
@ -77,7 +77,7 @@ def resetDelay():
|
||||
|
||||
def doDelay():
|
||||
global delay
|
||||
if getTimeDelta(datetime.now(), delay) < 120:
|
||||
if -120 < getTimeDelta(datetime.now(), delay) < 120:
|
||||
delay = datetime.fromtimestamp(0)
|
||||
return True
|
||||
return False
|
||||
|
Reference in New Issue
Block a user