Skip to content

Commit

Permalink
Use Fiber.inactive inside Fiber#run's ensure block (#13701)
Browse files Browse the repository at this point in the history
  • Loading branch information
HertzDevil authored Jul 25, 2023
1 parent 01c8c45 commit ce82727
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/fiber.cr
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ class Fiber
{% end %}

# Remove the current fiber from the linked list
Fiber.fibers.delete(self)
Fiber.inactive(self)

# Delete the resume event if it was used by `yield` or `sleep`
@resume_event.try &.free
Expand Down

0 comments on commit ce82727

Please sign in to comment.