gameServer/Actions.hs
branchserver_refactor
changeset 4606 4c521c4ab2b6
parent 4604 831a4b91e9bc
child 4610 9541b2a76067
equal deleted inserted replaced
4604:831a4b91e9bc 4606:4c521c4ab2b6
    66 
    66 
    67 processAction :: Action -> StateT ServerState IO ()
    67 processAction :: Action -> StateT ServerState IO ()
    68 
    68 
    69 
    69 
    70 processAction (AnswerClients chans msg) = do
    70 processAction (AnswerClients chans msg) = do
    71     io $ mapM_ (flip writeChan msg) chans
    71     io $ mapM_ (flip writeChan (msg `deepseq` msg)) (chans `deepseq` chans)
    72 
    72 
    73 
    73 
    74 processAction SendServerMessage = do
    74 processAction SendServerMessage = do
    75     chan <- client's sendChan
    75     chan <- client's sendChan
    76     protonum <- client's clientProto
    76     protonum <- client's clientProto