mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-12-25 02:06:09 +00:00
Stop trying to get items if server offline
This commit is contained in:
parent
3b3be6cf62
commit
c42dddf563
1 changed files with 5 additions and 0 deletions
|
@ -296,6 +296,11 @@ class GetItemWorker(threading.Thread):
|
|||
except HTTPException as error:
|
||||
LOG.error("--[ http status: %s ]", error.status)
|
||||
|
||||
if error.status == 'ServerUnreachable':
|
||||
self.is_done = True
|
||||
|
||||
break
|
||||
|
||||
except Exception as error:
|
||||
LOG.exception(error)
|
||||
|
||||
|
|
Loading…
Reference in a new issue