Pop twice

main2
Bob Mottram 2019-11-04 11:06:49 +00:00
parent df5d048dee
commit 06025845cb
1 changed files with 2 additions and 1 deletions

View File

@ -485,7 +485,8 @@ class PubServer(BaseHTTPRequestHandler):
self.server.followersThreads.append(followersThread) self.server.followersThreads.append(followersThread)
# retain up to 10 threads # retain up to 10 threads
if len(self.server.followersThreads)>10: 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: if self.server.debug:
print('DEBUG: handle any unfollow requests') print('DEBUG: handle any unfollow requests')
outboxUndoFollow(self.server.baseDir,messageJson,self.server.debug) outboxUndoFollow(self.server.baseDir,messageJson,self.server.debug)