@@ -1,6 +1,5 @@
1{-# LANGUAGE CPP #-}
1{-# LANGUAGE CPP #-}
2{-# LANGUAGE ScopedTypeVariables #-}
2{-# LANGUAGE ScopedTypeVariables #-}
5module Network.Wai.Handler.Warp.Run where
4module Network.Wai.Handler.Warp.Run where
@@ -154,7 +153,7 @@ runSettingsConnection set getConn app = do
154 restore $ serveConnection set cleaner port app conn addr
153 restore $ serveConnection set cleaner port app conn addr
156 cleanup = connClose conn >> T.cancel th >> onClose
155 cleanup = connClose conn >> T.cancel th >> onClose
157− handle onE $ (serve `onException` cleanup)
156+ handle onE (serve `onException` cleanup)
159 -- FIXME: only IOEception is caught. What about other exceptions?
158 -- FIXME: only IOEception is caught. What about other exceptions?
160 getConnLoop = getConn `catch` \(e :: IOException) -> do
159 getConnLoop = getConn `catch` \(e :: IOException) -> do