Skip to content

Commit 8d773d1

Browse files
committed
Bug fix interaction interrupt with new iteration protocol of ResumableFunctions
1 parent 010af38 commit 8d773d1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/processes.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ end
5656

5757
function interrupt(proc::Process, cause::Any=nothing)
5858
env = environment(proc)
59-
if proc.fsmi != 0xff
59+
if proc.fsmi._state != 0xff
6060
proc.target isa Initialize && schedule(proc.target; priority=typemax(Int8))
6161
target = schedule(Interrupt(env); priority=typemax(Int8), value=InterruptException(active_process(env), cause))
6262
@callback execute_interrupt(target, proc)

0 commit comments

Comments
 (0)