Skip to content

Commit

Permalink
Fix deadlock introduced in c50cdf7
Browse files Browse the repository at this point in the history
  • Loading branch information
mwiencek committed Jan 20, 2014
1 parent c50cdf7 commit b9b6bfe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion picard/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,11 @@ def __init__(self, config, name):
self.__name = name

def __getitem__(self, name):
self.lock_for_read()
key = "%s/%s" % (self.__name, name)
opt = Option.get(self.__name, name)
if opt is None:
return None
self.lock_for_read()
try:
if self.__config.contains(key):
return opt.convert(self.__config.value(key))
Expand Down

0 comments on commit b9b6bfe

Please sign in to comment.