diff -r 8a620b460b49 -r 638d1d430d24 editors/DebugViewer.py --- a/editors/DebugViewer.py Fri May 31 13:31:11 2013 +0200 +++ b/editors/DebugViewer.py Fri May 31 14:17:23 2013 +0200 @@ -180,7 +180,7 @@ if self.SubscribeTick and self.Debug and self.DataProducer is not None: self.DataProducer.SubscribeDebugIECVariable("__tick__", self) - def UnsubscribeAllDataConsumers(self): + def UnsubscribeAllDataConsumers(self, tick=True): """ Called to Unsubscribe all data consumers. """ @@ -192,7 +192,7 @@ iec_path, consumer) # Unscribe tick if needed - if self.SubscribeTick and self.Debug: + if self.SubscribeTick and tick and self.Debug: self.DataProducer.UnsubscribeDebugIECVariable("__tick__", self) self.DataConsumers = {}