This commit is contained in:
ed
2021-07-13 00:54:23 +02:00
parent 016dba4ca9
commit e9ae9782fe
2 changed files with 2 additions and 2 deletions

View File

@@ -171,7 +171,7 @@ class HttpSrv(object):
"""takes an incoming tcp connection and creates a thread to handle it"""
now = time.time()
if self.tp_time and now - self.tp_time > 300:
if now - (self.tp_time or now) > 300:
self.tp_q = None
if self.tp_q: