Skip to content

Commit

Permalink
Fix missed reference to ThreadKilled (from kazu-yamamoto#79)
Browse files Browse the repository at this point in the history
  • Loading branch information
edsko committed Jul 25, 2023
1 parent 5b1a0f2 commit 9e7713b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Network/HTTP2/Server/Worker.hs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ module Network.HTTP2.Server.Worker (
, fromContext
) where

import Control.Exception (AsyncException(..))
import Data.IORef
import qualified Network.HTTP.Types as H
import qualified System.TimeManager as T
Expand Down Expand Up @@ -170,7 +169,7 @@ worker wc@WorkerConf{..} mgr server = do
Right () -> return True
Left e@(SomeException _)
-- killed by the local worker manager
| Just ThreadKilled <- E.fromException e -> return False
| Just KilledByHttp2ThreadPoolManager{} <- E.fromException e -> return False
-- killed by the local timeout manager
| Just T.TimeoutThread <- E.fromException e -> do
cleanup sinfo
Expand Down

0 comments on commit 9e7713b

Please sign in to comment.