Exchange if and with cr_kwargs_lock

This commit is contained in:
ZyX 2013-04-03 07:41:48 +04:00
parent 2a0e601995
commit 577a1c0c79
1 changed files with 2 additions and 2 deletions

View File

@ -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)