diff --git a/warp/Network/Wai/Handler/Warp/Run.hs b/warp/Network/Wai/Handler/Warp/Run.hs index 085960613..98d8a63c9 100644 --- a/warp/Network/Wai/Handler/Warp/Run.hs +++ b/warp/Network/Wai/Handler/Warp/Run.hs @@ -369,7 +369,7 @@ fork set mkConn addr app counter ii = settingsFork set $ \unmask -> do -- above ensures the connection is closed. when goingon $ serveConnection conn ii th addr transport set app where - register = T.registerKillThread (timeoutManager ii) (connClose conn) + register = T.registerKillThread (timeoutManager ii) (return ()) cancel = T.cancel onOpen adr = increase counter >> settingsOnOpen set adr