Skip to content

Commit 92e4ac1

Browse files
committed
wait for cancel
1 parent f8220ba commit 92e4ac1

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
@@ -766,8 +766,8 @@ shakeRestart recorder IdeState{..} vfs reason acts ioActionBetweenShakeSession =
766766
withMVar'
767767
shakeSession
768768
(\runner -> do
769-
signalBarrier barrier ()
770769
(stopTime,()) <- duration $ logErrorAfter 10 $ cancelShakeSession runner
770+
signalBarrier barrier ()
771771
keys <- ioActionBetweenShakeSession
772772
atomically $ modifyTVar' (dirtyKeys shakeExtras) $ \x -> foldl' (flip insertKeySet) x keys
773773
res <- shakeDatabaseProfile shakeDb

0 commit comments

Comments
 (0)