Skip to content

Commit

Permalink
Set status to interrupting before closing scope (#3883)
Browse files Browse the repository at this point in the history
  • Loading branch information
mikearnaldi committed Jun 30, 2020
1 parent 87687aa commit 17ad88b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions core/shared/src/main/scala/zio/internal/FiberContext.scala
Original file line number Diff line number Diff line change
Expand Up @@ -427,6 +427,8 @@ private[zio] final class FiberContext[E, A](
else causeAndInterrupt
}

setInterrupting(true)

curZio = done(Exit.halt(cause))
} else {
setInterrupting(false)
Expand Down

0 comments on commit 17ad88b

Please sign in to comment.