Commit 5bd9eceb authored by Grégory Wisniewski's avatar Grégory Wisniewski

Don't start an election if there is no other masters.

git-svn-id: https://svn.erp5.org/repos/neo/trunk@1800 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent e1e2e347
......@@ -101,6 +101,8 @@ class Application(object):
# Start a normal operation.
while True:
# (Re)elect a new primary master.
self.primary = not bool(self.nm.getMasterList())
if not self.primary:
self.electPrimary(bootstrap=bootstrap)
bootstrap = False
try:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment