forked from platypush/platypush
Removed unneeded lock acquire
This commit is contained in:
parent
2ee54b5220
commit
1d50e91b27
1 changed files with 2 additions and 3 deletions
|
@ -74,7 +74,6 @@ def get_plugin(plugin_name, reload=False):
|
||||||
if plugin_name not in plugins_init_locks:
|
if plugin_name not in plugins_init_locks:
|
||||||
plugins_init_locks[plugin_name] = Lock()
|
plugins_init_locks[plugin_name] = Lock()
|
||||||
|
|
||||||
with plugins_init_locks[plugin_name]:
|
|
||||||
if plugin_name in plugins and not reload:
|
if plugin_name in plugins and not reload:
|
||||||
return plugins[plugin_name]
|
return plugins[plugin_name]
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue