From 06025845cb4cd3d3e8a2ddce6ff0ede619d7557e Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Mon, 4 Nov 2019 11:06:49 +0000 Subject: [PATCH] Pop twice --- daemon.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/daemon.py b/daemon.py index 04ba0148..f69747c1 100644 --- a/daemon.py +++ b/daemon.py @@ -485,7 +485,8 @@ class PubServer(BaseHTTPRequestHandler): self.server.followersThreads.append(followersThread) # retain up to 10 threads if len(self.server.followersThreads)>10: - self.server.followersThreads.pop(0) + for i in range(2): + self.server.followersThreads.pop(0) if self.server.debug: print('DEBUG: handle any unfollow requests') outboxUndoFollow(self.server.baseDir,messageJson,self.server.debug)