Take the interval variable into the run thread - not sure if really better

This commit is contained in:
Roy Nieterau 2022-03-30 16:11:35 +02:00
parent 53382a1960
commit 84ab53664f

View file

@ -10,12 +10,12 @@ class PulseThread(QtCore.QThread):
def __init__(self, parent=None):
super(PulseThread, self).__init__(parent=parent)
# Interval in milliseconds
self._interval = os.environ.get("OPENPYPE_FUSION_PULSE_INTERVAL", 1000)
def run(self):
app = getattr(sys.modules["__main__"], "app", None)
# Interval in milliseconds
interval = os.environ.get("OPENPYPE_FUSION_PULSE_INTERVAL", 1000)
while True:
if self.isInterruptionRequested():
return