From 88c7e49aa52664a41f806ef334e5886f5def0f03 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sun, 12 Jan 2020 22:19:33 +0000 Subject: [PATCH] Try partial --- daemon.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/daemon.py b/daemon.py index 36304da0..ad5c6cfc 100644 --- a/daemon.py +++ b/daemon.py @@ -5659,7 +5659,8 @@ def runDaemon(mediaInstance: bool,maxRecentPosts: int, \ if unitTest: httpd = ThreadingHTTPServer(serverAddress, PubServerUnitTest) else: - httpd = ThreadingHTTPServer(serverAddress, PubServer) + pubHandler = partial(PubServer) + httpd = ThreadingHTTPServer(serverAddress, pubHandler) httpd.useBlurHash=useBlurHash httpd.mediaInstance=mediaInstance