From 0860909befc04a8aadec5e8fdc474336de8de848 Mon Sep 17 00:00:00 2001 From: Fabio Erculiani Date: Mon, 16 Aug 2010 22:25:51 +0200 Subject: [PATCH] [equo] text_tools.acquire_entropy_locks: determine if another entropy is running before any other check, more nazism ftw --- client/text_tools.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/client/text_tools.py b/client/text_tools.py index c4f044204..f3a3cb4fa 100644 --- a/client/text_tools.py +++ b/client/text_tools.py @@ -25,14 +25,14 @@ def acquire_entropy_locks(entropy_client): """ Acquire Entropy Client/Server file locks. """ - gave_up = entropy_client.wait_resources() - if gave_up: - return False - locked = entropy_client.another_entropy_running() if locked: return False + gave_up = entropy_client.wait_resources() + if gave_up: + return False + # entropy resources locked? locked = entropy_client.resources_locked() if locked: