gameServer/ClientIO.hs
changeset 7388 92535bc7e928
parent 7321 57bd4f201401
child 8371 0551b5c3de9a
--- a/gameServer/ClientIO.hs	Fri Jul 13 01:07:53 2012 +0400
+++ b/gameServer/ClientIO.hs	Fri Jul 13 13:21:52 2012 +0400
@@ -66,12 +66,11 @@
         killReciever . B.unpack $ quitMessage answer
 
     Exception.handle
-        (\(e :: Exception.IOException) -> unless (isQuit answer) . killReciever $ show e) $
+        (\(e :: Exception.SomeException) -> unless (isQuit answer) . killReciever $ show e) $
             sendAll s $ B.unlines answer `B.snoc` '\n'
 
     if isQuit answer then
-        do
-        Exception.handle (\(_ :: Exception.IOException) -> putStrLn "error on sClose") $ sClose s
+        sClose s
         else
         clientSendLoop s tId chan ci