fix build with webapp disabled
Broken by recent thread manager and restarting improvements.
This commit is contained in:
parent
b1de99c1d4
commit
937cf81873
2 changed files with 31 additions and 17 deletions
|
@ -196,8 +196,10 @@ startDaemon assistant foreground startbrowser = do
|
|||
#ifdef WITH_WEBAPP
|
||||
d <- getAssistant id
|
||||
urlrenderer <- liftIO newUrlRenderer
|
||||
mapM_ (startthread $ Just urlrenderer)
|
||||
#else
|
||||
mapM_ (startthread Nothing)
|
||||
#endif
|
||||
mapM_ (startthread urlrenderer)
|
||||
[ watch $ commitThread
|
||||
#ifdef WITH_WEBAPP
|
||||
, assist $ webAppThread d urlrenderer False Nothing webappwaiter
|
||||
|
@ -230,5 +232,5 @@ startDaemon assistant foreground startbrowser = do
|
|||
watch a = (True, a)
|
||||
assist a = (False, a)
|
||||
startthread urlrenderer (watcher, t)
|
||||
| watcher || assistant = startNamedThread (Just urlrenderer) t
|
||||
| watcher || assistant = startNamedThread urlrenderer t
|
||||
| otherwise = noop
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue