mirror of
https://github.com/powerline/powerline.git
synced 2025-07-27 07:44:36 +02:00
Exchange if and with cr_kwargs_lock
This commit is contained in:
parent
2a0e601995
commit
577a1c0c79
@ -440,8 +440,8 @@ class Powerline(object):
|
|||||||
pass
|
pass
|
||||||
else:
|
else:
|
||||||
kwargs['load_' + type] = True
|
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.create_renderer_kwargs.update(kwargs)
|
||||||
self.shutdown_event.wait(self.interval)
|
self.shutdown_event.wait(self.interval)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user