Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Felix Schlitter committed May 20, 2019
1 parent d7efa2f commit 1cf435d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/Effect/Aff.js
Original file line number Diff line number Diff line change
Expand Up @@ -498,7 +498,11 @@ var Aff = function () {
// bracket count is non-zero then we are in a masked state so it's
// impossible to be killed.
if (interrupt && interrupt !== tmp && bracketCount === 0) {
step = attempt._1.killed(util.fromLeft(interrupt))(attempt._2);
if (util.isLeft(step)) {
step = attempt._1.killed(util.fromLeft(interrupt))(attempt._2);
} else {
step = attempt._1.completed(util.fromRight(step))(attempt._2);
}
} else if (fail) {
step = attempt._1.failed(util.fromLeft(fail))(attempt._2);
} else {
Expand Down

0 comments on commit 1cf435d

Please sign in to comment.