From e6737705442575797891d9e9bf64deb665cede6e Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sun, 30 Jun 2019 14:42:02 +0100 Subject: [PATCH] Tidying --- posts.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/posts.py b/posts.py index 64b0af03..58d110ce 100644 --- a/posts.py +++ b/posts.py @@ -358,8 +358,7 @@ def sendPost(session,username: str, domain: str, toUsername: str, toDomain: str, # Keep the number of threads being used small if len(sendThreads)>10: - thr=sendThreads[0] - thr.stop() + sendThreads[0].stop() sendThreads.pop(0) thr = threading.Thread(target=threadSendPost,args=(session,postJsonObject.copy(),federationList,inboxUrl,signatureHeader.copy()),daemon=True) sendThreads.append(thr)