implement device shutdown on deletion or lack of profiles
This commit is contained in:
@ -122,6 +122,10 @@ class ServiceHandler(SdrSourceEventClient):
|
||||
logger.debug("sdr source failed; stopping services.")
|
||||
self.stopServices()
|
||||
|
||||
def onShutdown(self):
|
||||
logger.debug("sdr source is shutting down; shutting down service handler, too.")
|
||||
self.shutdown()
|
||||
|
||||
def onEnable(self):
|
||||
self._scheduleServiceStartup()
|
||||
|
||||
|
@ -258,6 +258,9 @@ class ServiceScheduler(SdrSourceEventClient):
|
||||
def onFail(self):
|
||||
self.shutdown()
|
||||
|
||||
def onShutdown(self):
|
||||
self.shutdown()
|
||||
|
||||
def onDisable(self):
|
||||
self.cancelTimer()
|
||||
|
||||
|
Reference in New Issue
Block a user