cleanup
This commit is contained in:
parent
71a760e054
commit
7e3a153c66
1 changed files with 1 additions and 0 deletions
|
@ -57,6 +57,7 @@ terminateGameOnSigint = do
|
||||||
putStrLn "SIGINT caught, terminating…"
|
putStrLn "SIGINT caught, terminating…"
|
||||||
clients <- liftIO $ STM.atomically $ STM.readTMVar clientList
|
clients <- liftIO $ STM.atomically $ STM.readTMVar clientList
|
||||||
disconnectClients clientList clients
|
disconnectClients clientList clients
|
||||||
|
threadDelay (10 ^ 6)
|
||||||
close sock
|
close sock
|
||||||
st <- STM.atomically $ STM.readTMVar serverState
|
st <- STM.atomically $ STM.readTMVar serverState
|
||||||
void $ STM.atomically $ STM.swapTMVar serverState $ st
|
void $ STM.atomically $ STM.swapTMVar serverState $ st
|
||||||
|
|
Loading…
Reference in a new issue