Skip to content

Commit

Permalink
Use Fiber.inactive inside Fiber#run's ensure block (crystal-lan…
Browse files Browse the repository at this point in the history
  • Loading branch information
HertzDevil authored and Blacksmoke16 committed Dec 11, 2023
1 parent 44faaaf commit 110b45f
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 110b45f

Please sign in to comment.