diff --git a/owrx/service.py b/owrx/service.py index 7a583c3..16a6359 100644 --- a/owrx/service.py +++ b/owrx/service.py @@ -284,11 +284,14 @@ class ServiceHandler(object): resampler_props["samp_rate"] = bw + 24000 resampler = Resampler(resampler_props, self.getAvailablePort(), self.source) resampler.start() - self.services.append(resampler) for dial in group: self.services.append(self.setupService(dial["mode"], dial["frequency"], resampler)) + # resampler goes in after the services since it must not be shutdown as long as the services are still running + self.services.append(resampler) + + def optimizeResampling(self, freqs, bandwidth): freqs = sorted(freqs, key=lambda f: f["frequency"]) distances = [