Permalink
Browse files

Fix server purging

  • Loading branch information...
nOOb3167 authored and sfan5 committed Mar 17, 2018
1 parent 2f87286 commit 78abbee771a48fd6a1c9114b692a529c61314fe7
Showing with 1 addition and 3 deletions.
  1. +1 −3 server.py
@@ -348,9 +348,7 @@ def server_points(server):

def purgeOld(self):
with self.lock:
for server in self.list:
if server["update_time"] < time.time() - app.config["PURGE_TIME"]:
self.list.remove(server)
self.list = [server for server in self.list if time.time() <= server["update_time"] + app.config["PURGE_TIME"]]
self.save()

def load(self):

0 comments on commit 78abbee

Please sign in to comment.