Fix issue in skill shutdown.
If super's shutdown was called before trying to cancel events an exception would be thrown since shutdown removed all registered events by setting self.events to None.
This replaces this with an empty list to allow skills to try to remove events/cancel events without incidents.
@@ -913,7 +913,7 @@ class MycroftSkill(object):
# removing events
for e, f in self.events:
self.emitter.remove(e, f)
- self.events = None # Remove reference to wrappers
+ self.events = [] # Remove reference to wrappers
self.emitter.emit(
Message("detach_skill", {"skill_id": str(self.skill_id) + ":"}))
