diff options
author | Joey Hess <joey@kitenet.net> | 2012-10-27 00:50:14 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2012-10-27 00:50:14 -0400 |
commit | e359a06cf6f422660e1c05e6f50a812d41c535c9 (patch) | |
tree | 5e1ee6dd4902df89edcf85c820b306fe38565549 /Command | |
parent | ce5b38aa1dbd1e320c5247d95344e373bf03e7cf (diff) |
(re)start XMPP when it's configured in the webapp
Diffstat (limited to 'Command')
-rw-r--r-- | Command/WebApp.hs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Command/WebApp.hs b/Command/WebApp.hs index f87ea983a..99f94cd2f 100644 --- a/Command/WebApp.hs +++ b/Command/WebApp.hs @@ -15,6 +15,7 @@ import Assistant.DaemonStatus import Assistant.ScanRemotes import Assistant.TransferQueue import Assistant.TransferSlots +import Assistant.Pushes import Assistant.Threads.WebApp import Assistant.WebApp import Assistant.Install @@ -104,11 +105,12 @@ firstRun = do transferqueue <- newTransferQueue transferslots <- newTransferSlots urlrenderer <- newUrlRenderer + pushnotifier <- newPushNotifier v <- newEmptyMVar let callback a = Just $ a v void $ runNamedThread dstatus $ webAppThread Nothing dstatus scanremotes - transferqueue transferslots urlrenderer + transferqueue transferslots pushnotifier urlrenderer (callback signaler) (callback mainthread) where signaler v = do |