Skip to content

Add and use #reset!#45

Open
zeroSteiner wants to merge 1 commit intorapid7:masterfrom
zeroSteiner:fix/io/relay-manager/reuse
Open

Add and use #reset!#45
zeroSteiner wants to merge 1 commit intorapid7:masterfrom
zeroSteiner:fix/io/relay-manager/reuse

Conversation

@zeroSteiner
Copy link
Contributor

This adds a #reset! method to the FiberScheduler class, which will reset the object back to its initial state. This is necessary if the scheduler will be used again as is the case in the RelayManager. If one or more relays are added then they all exit, the scheduler needs to be reset before it can be used again. This fixes a bug where the relays all exit, then more relays are added. Between the exit of the original relays and the new ones being added, the scheduler was left in a closed state so the new relays were never being processed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant