Skip to content

Commit f4690c5

Browse files
committed
shut the session before shut the reactor
1 parent a65ac5c commit f4690c5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ghcide/src/Development/IDE/LSP/LanguageServer.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -262,10 +262,10 @@ shutdownHandler :: Recorder (WithPriority Log) -> IO () -> LSP.Handlers (ServerM
262262
shutdownHandler recorder stopReactor = LSP.requestHandler SMethod_Shutdown $ \_ resp -> do
263263
(_, ide) <- ask
264264
liftIO $ logWith recorder Debug LogServerShutdownMessage
265-
-- stop the reactor to free up the hiedb connection
266-
liftIO stopReactor
267265
-- flush out the Shake session to record a Shake profile if applicable
268266
liftIO $ shakeShut ide
267+
-- stop the reactor to free up the hiedb connection
268+
liftIO stopReactor
269269
resp $ Right Null
270270

271271
exitHandler :: IO () -> LSP.Handlers (ServerM c)

0 commit comments

Comments
 (0)