コード例 #1
0
 def onAbortRequested(self):
     # Only when closing Kodi
     if xbmc.abortRequested:
         xbmc.executebuiltin("Dialog.Close(all, true)")
         shutdown()
         try:
             self._closing.set()
             self._closing.clear()
         except SystemExit as e:
             if e.code != 0:
                 os._exit(0)
             pass
コード例 #2
0
    def onAbortRequested(self):
        log.debug('{0}.onAbortRequested()'.format(self))

        # Only when closing Kodi
        if self.abortRequested():
            xbmc.executebuiltin("Dialog.Close(all, true)")
            if not ONLY_CLIENT:
                shutdown()
            try:
                self._closing.set()
                self._closing.clear()
            except SystemExit as e:
                if e.code != 0:
                    os._exit(0)
                pass