fix an unset property error

This commit is contained in:
Jakob Ketterl 2021-01-20 16:41:53 +01:00
parent 181855e7a4
commit fe45d139ad

View File

@ -65,12 +65,12 @@ class ServiceHandler(SdrSourceEventClient):
self.services = [] self.services = []
self.source = source self.source = source
self.startupTimer = None self.startupTimer = None
self.scheduler = None
self.source.addClient(self) self.source.addClient(self)
props = self.source.getProps() props = self.source.getProps()
props.filter("center_freq", "samp_rate").wire(self.onFrequencyChange) props.filter("center_freq", "samp_rate").wire(self.onFrequencyChange)
if self.source.isAvailable(): if self.source.isAvailable():
self.scheduleServiceStartup() self.scheduleServiceStartup()
self.scheduler = None
if "schedule" in props or "scheduler" in props: if "schedule" in props or "scheduler" in props:
self.scheduler = ServiceScheduler(self.source) self.scheduler = ServiceScheduler(self.source)