Fix object reload upon restart service

This commit is contained in:
angelblue05 2019-01-22 05:12:58 -06:00
parent cd66d567ea
commit 77d69a7239

View file

@ -63,9 +63,12 @@ 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:
if not 'ExitService' in error:
service.shutdown() service.shutdown()
elif 'RestartService' in error:
if 'RestartService' in error:
service.reload_objects() service.reload_objects()
self.exception = error self.exception = error