Fix kodi hang on exit

This commit is contained in:
angelblue05 2018-09-13 01:26:49 -05:00
parent d81d77d9aa
commit 2677f98012
2 changed files with 8 additions and 1 deletions

View file

@ -288,7 +288,9 @@ class TheVoid(object):
return response return response
if xbmc.Monitor().abortRequested(): if window('emby_should_stop.bool'):
LOG.info("Abandon mission! A black hole just swallowed [ %s ]", self.data['VoidName'])
break break
def get_objects(src, filename): def get_objects(src, filename):

View file

@ -215,6 +215,11 @@ def browse(media, view_id=None, folder=None, server_id=None):
''' '''
LOG.info("--[ v:%s/%s ] %s", view_id, media, folder) LOG.info("--[ v:%s/%s ] %s", view_id, media, folder)
if not window('emby_online.bool') and server_id is None:
LOG.error("Default server is not online.")
return
if view_id: if view_id:
view = TheVoid('GetItem', {'ServerId': server_id, 'Id': view_id}).get() view = TheVoid('GetItem', {'ServerId': server_id, 'Id': view_id}).get()