Fix problem with updating value: it was not updated in a thread
This commit is contained in:
parent
655549440b
commit
34c775f628
|
@ -63,7 +63,7 @@ class ThreadedSegment(object):
|
||||||
while not self.shutdown_event.is_set():
|
while not self.shutdown_event.is_set():
|
||||||
start_time = monotonic()
|
start_time = monotonic()
|
||||||
try:
|
try:
|
||||||
self.update(self.update_value)
|
self.update_value = self.update(self.update_value)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
self.error('Exception while updating: {0}', str(e))
|
self.error('Exception while updating: {0}', str(e))
|
||||||
self.skip = True
|
self.skip = True
|
||||||
|
|
Loading…
Reference in New Issue