summaryrefslogtreecommitdiff
path: root/Assistant.hs
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2012-08-02 09:09:06 -0400
committerGravatar Joey Hess <joey@kitenet.net>2012-08-02 09:09:06 -0400
commit520a0463a7172314298db0ce507fa355dc1238a3 (patch)
tree8da18db1d971d2b44b0a4d7c86070735df3ec3c4 /Assistant.hs
parent7cc5fdbd7b25a32c1e5786abbd419c845711d9d5 (diff)
start webapp thread earlier so it opens ASAP
Diffstat (limited to 'Assistant.hs')
-rw-r--r--Assistant.hs6
1 files 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