Kodi Community Forum

Full Version: Signal to addon that kodi is closing.
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi everyone.

Whether main process can send any signal to its addons before closing itself? I need make same instructions before closing my addon.
e.g.:
Code:
#main loop
while True:
  #some instructions
  if kodi.is.closing: break
xbmc.log('addon was killed'))
xbmc.abortRequested module-level boolean variable is that signal.

An example of implementation: https://github.com/romanvm/kodi.yatp/blo...ver.py#L30
Thanks, that's what i needed