From 7615022e08c3c07745ba3b654332ef4e019bd74f Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sun, 30 Jun 2019 14:40:14 +0100 Subject: [PATCH] Copy objects --- posts.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/posts.py b/posts.py index fabb2b149..64b0af03f 100644 --- a/posts.py +++ b/posts.py @@ -361,7 +361,7 @@ def sendPost(session,username: str, domain: str, toUsername: str, toDomain: str, thr=sendThreads[0] thr.stop() sendThreads.pop(0) - thr = threading.Thread(target=threadSendPost,args=(session,postJsonObject,federationList,inboxUrl,signatureHeader),daemon=True) + thr = threading.Thread(target=threadSendPost,args=(session,postJsonObject.copy(),federationList,inboxUrl,signatureHeader.copy()),daemon=True) sendThreads.append(thr) thr.start() return 0