From 520a0463a7172314298db0ce507fa355dc1238a3 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Thu, 2 Aug 2012 09:09:06 -0400 Subject: start webapp thread earlier so it opens ASAP --- Assistant.hs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Assistant.hs b/Assistant.hs index 6af6c6639..b81806ff9 100644 --- a/Assistant.hs +++ b/Assistant.hs @@ -154,6 +154,9 @@ startAssistant assistant daemonize webappwaiter = do scanremotes <- newScanRemoteMap mapM_ startthread [ watch $ commitThread st changechan commitchan transferqueue dstatus +#ifdef WITH_WEBAPP + , assist $ webAppThread (Just st) dstatus transferqueue Nothing webappwaiter +#endif , assist $ pushThread st dstatus commitchan pushmap , assist $ pushRetryThread st dstatus pushmap , assist $ mergeThread st @@ -163,9 +166,6 @@ startAssistant assistant daemonize webappwaiter = do , assist $ sanityCheckerThread st dstatus transferqueue changechan , assist $ mountWatcherThread st dstatus scanremotes , assist $ transferScannerThread st dstatus scanremotes transferqueue -#ifdef WITH_WEBAPP - , assist $ webAppThread (Just st) dstatus transferqueue Nothing webappwaiter -#endif , watch $ watchThread st dstatus transferqueue changechan ] waitForTermination -- cgit v1.2.3