From 7b8e63951173355709bb0a2e51a950a8b91a8938 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Fri, 1 Nov 2019 21:10:59 +0000 Subject: [PATCH] Receive new posts synchronously --- daemon.py | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/daemon.py b/daemon.py index e7a37f1f..b9957433 100644 --- a/daemon.py +++ b/daemon.py @@ -2747,13 +2747,15 @@ class PubServer(BaseHTTPRequestHandler): headers[dictEntryName]=headerLine print('New post headers: '+str(headers)) - print('Creating new post thread: '+newPostThreadName) - self.server.newPostThread[newPostThreadName]= \ - threadWithTrace(target=self._receiveNewPostThread, \ - args=(authorized,postType,path,headers),daemon=True) + #print('Creating new post thread: '+newPostThreadName) + #self.server.newPostThread[newPostThreadName]= \ + # threadWithTrace(target=self._receiveNewPostThread, \ + # args=(authorized,postType,path,headers),daemon=True) + #print('Starting new post thread') + #self.server.newPostThread[newPostThreadName].start() - print('Starting new post thread') - self.server.newPostThread[newPostThreadName].start() + print('Creating new post: '+newPostThreadName) + self._receiveNewPostThread(authorized,postType,path,headers) return pageNumber def do_POST(self):