Skip to content
This repository has been archived by the owner on Sep 8, 2024. It is now read-only.

Don't kill global events when shutting down skill #2296

Merged
merged 1 commit into from
Sep 10, 2019

Conversation

forslund
Copy link
Collaborator

Description

During skill shutdown remove_all_handlers() was called on all registered
events. This would unregister all global events, such as settings
updating, stop for all skills.

Now the remove only will remove the instance connected to the skills
method.

This is a likely cause for the failure to stopping the news playback.

How to test

Start skills, trigger a reload of a single skill. Ensure that the news skill can be stopped still.

Contributor license agreement signed?

CLA [ Yes ]

During skill shutdown remove_all_handlers() was called on all registered
events. This would unregister all global events, such as settings
updating, stop for all skills.

Now the remove only will remove the instance connected to the skills
method.
@devs-mycroft devs-mycroft added the CLA: Yes Contributor License Agreement exists (see https://github.com/MycroftAI/contributors) label Sep 10, 2019
Copy link
Contributor

@davidwagnerkc davidwagnerkc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested 👍

@forslund forslund merged commit ca37d18 into MycroftAI:dev Sep 10, 2019
@forslund forslund deleted the bugfix/clear-all-skill-events branch November 28, 2019 09:43
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
CLA: Yes Contributor License Agreement exists (see https://github.com/MycroftAI/contributors)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants