mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-11-10 04:06:11 +00:00
Merge pull request #172 from angelblue05/develop
Fix object reload upon restart service
This commit is contained in:
commit
1e77c8ab8e
1 changed files with 7 additions and 4 deletions
11
service.py
11
service.py
|
@ -63,10 +63,13 @@ class ServiceManager(threading.Thread):
|
||||||
service.service()
|
service.service()
|
||||||
except Exception as error:
|
except Exception as error:
|
||||||
|
|
||||||
if not 'ExitService' in error and service is not None:
|
if service is not None:
|
||||||
service.shutdown()
|
|
||||||
elif 'RestartService' in error:
|
if not 'ExitService' in error:
|
||||||
service.reload_objects()
|
service.shutdown()
|
||||||
|
|
||||||
|
if 'RestartService' in error:
|
||||||
|
service.reload_objects()
|
||||||
|
|
||||||
self.exception = error
|
self.exception = error
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue