gameServer/OfficialServer/checker.hs
changeset 11509 6a5bdf930edf
parent 11345 d3317d6162fe
child 11544 b69f5f22a3ba
child 11578 013264e25d71
--- a/gameServer/OfficialServer/checker.hs	Wed Jan 13 19:38:03 2016 +0300
+++ b/gameServer/OfficialServer/checker.hs	Wed Jan 13 19:54:55 2016 +0300
@@ -153,10 +153,12 @@
             CheckFailed msg -> do
                 warningM "Check" "Check failed"
                 answer ["CHECKED", "FAIL", msg]
+                threadDelay 1500000
                 answer ["READY"]
             CheckSuccess msgs -> do
                 warningM "Check" "Check succeeded"
                 answer ("CHECKED" : "OK" : msgs)
+                threadDelay 1500000
                 answer ["READY"]
     where
     answer :: [B.ByteString] -> IO ()
@@ -176,7 +178,7 @@
 
 
 main :: IO ()
-main = withSocketsDo $ do
+main = withSocketsDo . forever $ do
 #if !defined(mingw32_HOST_OS)
     installHandler sigPIPE Ignore Nothing
     installHandler sigCHLD Ignore Nothing