Exchange if and with cr_kwargs_lock
This commit is contained in:
parent
2a0e601995
commit
577a1c0c79
|
@ -440,8 +440,8 @@ class Powerline(object):
|
|||
pass
|
||||
else:
|
||||
kwargs['load_' + type] = True
|
||||
with self.cr_kwargs_lock:
|
||||
if kwargs:
|
||||
if kwargs:
|
||||
with self.cr_kwargs_lock:
|
||||
self.create_renderer_kwargs.update(kwargs)
|
||||
self.shutdown_event.wait(self.interval)
|
||||
|
||||
|
|
Loading…
Reference in New Issue