diff options
author | Joey Hess <joey@kitenet.net> | 2012-11-05 19:39:08 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2012-11-05 19:39:08 -0400 |
commit | d61d6e1f8ae90cb5babbe1334bc7fd13c4eb90eb (patch) | |
tree | d8c81de580907c1c09284409f803cfdf56795958 /Assistant/NamedThread.hs | |
parent | b3d1a85c2068d42d5399fa659dc94735664da579 (diff) |
better handling of lifting from XMPP -> Assistant
Diffstat (limited to 'Assistant/NamedThread.hs')
-rw-r--r-- | Assistant/NamedThread.hs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Assistant/NamedThread.hs b/Assistant/NamedThread.hs index 4622f8742..083252f94 100644 --- a/Assistant/NamedThread.hs +++ b/Assistant/NamedThread.hs @@ -19,12 +19,12 @@ runNamedThread (NamedThread name a) = do liftIO . go $ d { threadName = name } where go d = do - r <- E.try (runAssistant a d) :: IO (Either E.SomeException ()) + r <- E.try (runAssistant d a) :: IO (Either E.SomeException ()) case r of Right _ -> noop Left e -> do let msg = unwords [name, "crashed:", show e] hPutStrLn stderr msg -- TODO click to restart - flip runAssistant d $ void $ + runAssistant d $ void $ addAlert $ warningAlert name msg |