mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-11-10 04:06:11 +00:00
Fix kodi hang on exit
This commit is contained in:
parent
d81d77d9aa
commit
2677f98012
2 changed files with 8 additions and 1 deletions
|
@ -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):
|
||||||
|
|
|
@ -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()
|
||||||
|
|
Loading…
Reference in a new issue