Skip to content

Commit f76bff4

Browse files
committed
handle error during stopShakeSession
1 parent 6d34bac commit f76bff4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ghcide/src/Development/IDE/Core/Shake.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -826,7 +826,7 @@ runWithShake f = do
826826
-- prepare the restart
827827
stopShakeSession :: RestartArguments -> IO Seconds
828828
stopShakeSession RestartArguments{restartIdeState=IdeState{..}, ..} = do
829-
withMVar shakeSession
829+
withMVarMasked shakeSession
830830
(\runner -> do
831831
(stopTime,()) <- duration $ logErrorAfter 10 $ cancelShakeSession runner
832832
keys <- restartActionBetweenShakeSession

0 commit comments

Comments
 (0)