Skip to content

Commit

Permalink
Treat Timeout as an async exception too
Browse files Browse the repository at this point in the history
  • Loading branch information
snoyberg committed Feb 13, 2018
1 parent 61cd146 commit fc49e14
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions hackage-security/src/Hackage/Security/Util/Checked.hs
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ isAsync e =
| Just (_ :: Base.Deadlock) <- Base.fromException se -> True
| Just (_ :: Base.BlockedIndefinitelyOnSTM) <- Base.fromException se -> True
| Just (_ :: Base.BlockedIndefinitelyOnMVar) <- Base.fromException se -> True
| show e == "<<timeout>>" -> True
| otherwise -> False
#endif

Expand Down

0 comments on commit fc49e14

Please sign in to comment.