forked from indymedia/epicyon
Tidying
parent
7615022e08
commit
e673770544
3
posts.py
3
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
|
# Keep the number of threads being used small
|
||||||
if len(sendThreads)>10:
|
if len(sendThreads)>10:
|
||||||
thr=sendThreads[0]
|
sendThreads[0].stop()
|
||||||
thr.stop()
|
|
||||||
sendThreads.pop(0)
|
sendThreads.pop(0)
|
||||||
thr = threading.Thread(target=threadSendPost,args=(session,postJsonObject.copy(),federationList,inboxUrl,signatureHeader.copy()),daemon=True)
|
thr = threading.Thread(target=threadSendPost,args=(session,postJsonObject.copy(),federationList,inboxUrl,signatureHeader.copy()),daemon=True)
|
||||||
sendThreads.append(thr)
|
sendThreads.append(thr)
|
||||||
|
|
Loading…
Reference in New Issue