diff --git a/imapfw/concurrency/concurrency.py b/imapfw/concurrency/concurrency.py index 0222259..ba77c2d 100644 --- a/imapfw/concurrency/concurrency.py +++ b/imapfw/concurrency/concurrency.py @@ -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)