termination mechanism integrated

This commit is contained in:
2021-08-25 17:36:30 +02:00
parent 78f001fd70
commit 5cabef91ea
6 changed files with 136 additions and 77 deletions

View File

@@ -15,9 +15,11 @@ class MqttEventPublisher(AbstractMqttPublisher):
self.disableAnalogInputEventPublishing = self.config["disableAnalogInputEventPublishing"].lower() in [ "true", "on" ]
def localLoop(self):
while True:
while not self.killBill:
with self.processImage:
self.processImage.wait()
if self.killBill:
continue
discreteInputChangeset = self.processImage.getChangedDiscreteInputs()
if not self.disableAnalogInputEventPublishing: