Don't close handle in exception handler
authorunc0rr
Tue, 21 Oct 2008 18:29:21 +0000
changeset 1393 6d04732abed2
parent 1392 dc6a772ea385
child 1394 962001cfcf48
Don't close handle in exception handler
netserver/hedgewars-server.hs
--- a/netserver/hedgewars-server.hs	Tue Oct 21 18:25:34 2008 +0000
+++ b/netserver/hedgewars-server.hs	Tue Oct 21 18:29:21 2008 +0000
@@ -47,7 +47,7 @@
 	unless (null recipients) $ putStrLn ("< " ++ (show answer))
 
 	clHandles' <- forM recipients $
-		\ch -> Control.Exception.handle (\e -> putStrLn ("handle exception: " ++ show e) >> hClose ch >> return []) $ -- cannot just remove
+		\ch -> Control.Exception.handle (\e -> putStrLn ("handle exception: " ++ show e) >> return []) $ -- cannot just remove
 			do
 			forM_ answer (\str -> hPutStrLn ch str)
 			hPutStrLn ch ""