server timeout clients
This commit is contained in:
parent
dda1389e42
commit
baae726e56
1 changed files with 8 additions and 0 deletions
|
@ -90,6 +90,14 @@ disconnectClients = mapM_
|
||||||
close clientSocket
|
close clientSocket
|
||||||
)
|
)
|
||||||
|
|
||||||
|
timeoutClients
|
||||||
|
:: [(Maybe UUID, Socket)]
|
||||||
|
-> IO ()
|
||||||
|
timeoutClients = mapM_
|
||||||
|
(\(_, clientSocket) -> do
|
||||||
|
close clientSocket
|
||||||
|
)
|
||||||
|
|
||||||
-- | Process incoming connection requests
|
-- | Process incoming connection requests
|
||||||
processRequests :: Game ()
|
processRequests :: Game ()
|
||||||
processRequests = do
|
processRequests = do
|
||||||
|
|
Loading…
Reference in a new issue