activate enable / disable cycle

This commit is contained in:
Jakob Ketterl
2021-03-18 19:59:10 +01:00
parent 37e7331627
commit d573561c67
4 changed files with 16 additions and 3 deletions

View File

@ -153,6 +153,8 @@ class SdrSource(ABC):
self.enabled = changes["enabled"]
else:
self.enabled = True
if not self.enabled:
self.stop()
for c in self.clients.copy():
if self.isEnabled():
c.onEnable()