[equo] text_tools.acquire_entropy_locks: determine if another entropy is running before any other check, more nazism ftw
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user