gameServer/HWProtoCore.hs
changeset 8519 98e2dbdda8c0
parent 8479 8d71109b04d2
child 8547 6898be8aa261
--- a/gameServer/HWProtoCore.hs	Tue Feb 19 22:03:33 2013 +0400
+++ b/gameServer/HWProtoCore.hs	Wed Feb 20 22:54:16 2013 +0400
@@ -30,7 +30,7 @@
 handleCmd ["PONG"] = do
     cl <- thisClient
     if pingsQueue cl == 0 then
-        return [ProtocolError "Protocol violation"]
+        return $ actionsPending cl ++ [ModifyClient (\c -> c{actionsPending = []})]
         else
         return [ModifyClient (\c -> c{pingsQueue = pingsQueue c - 1})]