Skip to content

Commit 335274b

Browse files
committed
stop the progress regardless but do profile if we can get the shake session
1 parent 9b8e966 commit 335274b

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

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

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -734,12 +734,11 @@ shakeShut recorder IdeState{..} = do
734734
-- request so we first abort that.
735735
cancelShakeSession runner
736736
void $ shakeDatabaseProfile shakeDb
737-
progressStop $ progress shakeExtras
738-
stopMonitoring
739737
case res of
740738
Nothing -> logWith recorder Error $ LogTimeOutShuttingDownWaitForSessionVar 1
741739
Just _ -> pure ()
742-
740+
progressStop $ progress shakeExtras
741+
stopMonitoring
743742

744743
-- | This is a variant of withMVar where the first argument is run unmasked and if it throws
745744
-- an exception, the previous value is restored while the second argument is executed masked.

0 commit comments

Comments
 (0)