[equo] text_tools.acquire_entropy_locks: determine if another entropy is running before any other check, more nazism ftw

This commit is contained in:
Fabio Erculiani
2010-08-16 22:25:51 +02:00
parent 91d9476758
commit 0860909bef

View File

@@ -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: