--- a/gameServer/ClientIO.hs Tue Jun 19 21:17:05 2012 +0200
+++ b/gameServer/ClientIO.hs Tue Jun 19 21:20:08 2012 +0200
@@ -48,6 +48,7 @@
listenLoop s chan ci >> return "Connection closed")
`Exception.catch` (\(e :: Exception.IOException) -> return . B.pack . show $ e)
`Exception.catch` (\(e :: ShutdownThreadException) -> return . B.pack . show $ e)
+ `Exception.catch` (\(e :: Exception.SomeException) -> return . B.pack . show $ e)
>>= clientOff >> remove
where
clientOff msg = writeChan chan $ ClientMessage (ci, ["QUIT", msg])