Switch session logging out and relaying the log-out message to keep the sessionID accessible until the end

This commit is contained in:
Tissevert 2019-11-18 17:11:05 +01:00
parent a07285c7fc
commit 3bd2829cf2
1 changed files with 1 additions and 1 deletions

View File

@ -21,8 +21,8 @@ import qualified Session (open)
exit :: App.T ()
exit = do
asks App.sessionID >>= App.update . Server.logOut
Messaging.relay Message.LogOut broadcast
asks App.sessionID >>= App.update . Server.logOut
serverApp :: App.T () -> App.T () -> IO ServerApp
serverApp onEnter onExit = do