From e9ae9782fe7c5df95a72bb730e54856080aa81a9 Mon Sep 17 00:00:00 2001 From: ed Date: Tue, 13 Jul 2021 00:54:23 +0200 Subject: [PATCH] v0.11.39 --- copyparty/__version__.py | 2 +- copyparty/httpsrv.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/copyparty/__version__.py b/copyparty/__version__.py index 4e6cbf14..0197c18f 100644 --- a/copyparty/__version__.py +++ b/copyparty/__version__.py @@ -1,6 +1,6 @@ # coding: utf-8 -VERSION = (0, 11, 38) +VERSION = (0, 11, 39) CODENAME = "the grid" BUILD_DT = (2021, 7, 13) diff --git a/copyparty/httpsrv.py b/copyparty/httpsrv.py index 3c265df8..e65ba846 100644 --- a/copyparty/httpsrv.py +++ b/copyparty/httpsrv.py @@ -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: