[eit.commands.command] call shutdown() before releasing locks
shutdown() calls EntropyCacher.sync() and stop()...
This commit is contained in:
@@ -223,9 +223,9 @@ class EitCommand(object):
|
||||
return func(server)
|
||||
finally:
|
||||
if server is not None:
|
||||
server.shutdown()
|
||||
if acquired:
|
||||
entropy.tools.release_entropy_locks(server)
|
||||
server.shutdown()
|
||||
|
||||
def _call_unlocked(self, func, repo):
|
||||
"""
|
||||
@@ -262,9 +262,9 @@ class EitCommand(object):
|
||||
return func(server)
|
||||
finally:
|
||||
if server is not None:
|
||||
server.shutdown()
|
||||
if acquired:
|
||||
entropy.tools.release_entropy_locks(server)
|
||||
server.shutdown()
|
||||
|
||||
def _settings(self):
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user