Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

reload: fix shutdown routines not called on .reload #1412

Merged
merged 2 commits into from
Mar 13, 2019

Conversation

Hanicef
Copy link
Contributor

@Hanicef Hanicef commented Nov 13, 2018

Similar to #1381, .reload didn't call any shutdown methods. This pull request addresses this by simply calling the shutdown method(s) before unloading the resources.
Fixes #1395

@dgw dgw added this to the 7.0.0 milestone Dec 26, 2018
@dgw dgw added the Bug Things to squish; generally used for issues label Dec 26, 2018
@dgw dgw added Bugfix Generally, PRs that reference (and fix) one or more issue(s) and removed Bug Things to squish; generally used for issues labels Jan 3, 2019
@dgw
Copy link
Member

dgw commented Jan 29, 2019

@Hanicef would you rebase this at some point?

@dgw dgw modified the milestones: 7.0.0, 6.6.5 Mar 13, 2019
Hanicef and others added 2 commits March 13, 2019 10:27
reload_module_tree() already calls shutdown methods, so calling
bot._shutdown() before getting into that function is redundant.

This is an artifact of my rebase, NOT Hanicef's original work (which
happened before reload_module_tree() even existed).
@dgw dgw force-pushed the 1395_reload_fix branch from 0a22dab to decf6d6 Compare March 13, 2019 15:27
@dgw dgw changed the base branch from master to 6.6.x March 13, 2019 15:28
@dgw
Copy link
Member

dgw commented Mar 13, 2019

I should definitely have changed the base branch first, then rebased after, but here we are.

That just puts it on me to verify the tests locally on 6.6.x, before merging, since Travis ran against master.

@dgw dgw merged commit de05825 into sopel-irc:6.6.x Mar 13, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bugfix Generally, PRs that reference (and fix) one or more issue(s)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants