Skip to content
This repository has been archived by the owner on Oct 7, 2022. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
concurrency: define SimpleLock only once
Signed-off-by: Nicolas Sebrecht <nicolas.s-dev@laposte.net>
  • Loading branch information
nicolas33 committed Feb 29, 2016
1 parent dd465e3 commit 368a036
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion imapfw/concurrency/concurrency.py
Expand Up @@ -286,7 +286,8 @@ def Concurrency(backendName):
global SimpleLock
try:
concurrency = ConcurrencyBackends[backendName]()
SimpleLock = concurrency.createLock
if SimpleLock is None:
SimpleLock = concurrency.createLock
return concurrency
except KeyError:
raise Exception("unkown backend: %s"% backendName)

0 comments on commit 368a036

Please sign in to comment.