Skip to content

Commit

Permalink
log all the 'times', 'time' may not be defined if the installation is…
Browse files Browse the repository at this point in the history
… missing the headers
  • Loading branch information
totaam committed Apr 12, 2021
1 parent 9efe4de commit 9f2a80e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions xpra/server/http_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,9 +145,9 @@ def get_headers(self):

@classmethod
def may_reload_headers(cls, http_headers_dirs):
mtimes = {}
if cls.http_headers_cache:
#do we need to refresh the cache?
mtimes = {}
for d in http_headers_dirs:
if os.path.exists(d) and os.path.isdir(d):
mtime = os.path.getmtime(d)
Expand Down Expand Up @@ -176,7 +176,7 @@ def may_reload_headers(cls, http_headers_dirs):
continue
headers[parts[0]] = parts[1]
cls.http_headers_time[d] = mtime
log("may_reload_headers() headers=%s, mtime=%s", headers, mtime)
log("may_reload_headers() headers=%s, mtime=%s", headers, mtimes)
cls.http_headers_cache = headers
return headers

Expand Down

0 comments on commit 9f2a80e

Please sign in to comment.