gameServer/HWProtoCore.hs
changeset 8519 98e2dbdda8c0
parent 8479 8d71109b04d2
child 8547 6898be8aa261
equal deleted inserted replaced
8517:648bb1cb7ebc 8519:98e2dbdda8c0
    28 
    28 
    29 
    29 
    30 handleCmd ["PONG"] = do
    30 handleCmd ["PONG"] = do
    31     cl <- thisClient
    31     cl <- thisClient
    32     if pingsQueue cl == 0 then
    32     if pingsQueue cl == 0 then
    33         return [ProtocolError "Protocol violation"]
    33         return $ actionsPending cl ++ [ModifyClient (\c -> c{actionsPending = []})]
    34         else
    34         else
    35         return [ModifyClient (\c -> c{pingsQueue = pingsQueue c - 1})]
    35         return [ModifyClient (\c -> c{pingsQueue = pingsQueue c - 1})]
    36 
    36 
    37 handleCmd ("CMD" : params) =
    37 handleCmd ("CMD" : params) =
    38     let c = concatMap B.words params in
    38     let c = concatMap B.words params in