diff --git a/platypush/utils/__init__.py b/platypush/utils/__init__.py index 2376b21d3..fb68bc98b 100644 --- a/platypush/utils/__init__.py +++ b/platypush/utils/__init__.py @@ -579,6 +579,8 @@ def get_lock( result = lock.acquire(**kwargs) try: + if not result: + raise TimeoutError() yield result finally: if result: