summaryrefslogtreecommitdiff
path: root/Assistant/NamedThread.hs
diff options
context:
space:
mode:
Diffstat (limited to 'Assistant/NamedThread.hs')
-rw-r--r--Assistant/NamedThread.hs4
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