Merge pull request #172 from angelblue05/develop

Fix object reload upon restart service
This commit is contained in:
angelblue05 2019-01-22 05:13:22 -06:00 committed by GitHub
commit 1e77c8ab8e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 4 deletions

View File

@ -63,10 +63,13 @@ class ServiceManager(threading.Thread):
service.service()
except Exception as error:
if not 'ExitService' in error and service is not None:
service.shutdown()
elif 'RestartService' in error:
service.reload_objects()
if service is not None:
if not 'ExitService' in error:
service.shutdown()
if 'RestartService' in error:
service.reload_objects()
self.exception = error