mirror of
https://repository.entgra.net/community/device-mgt-core.git
synced 2025-10-06 02:01:45 +00:00
Fixing issue with candidate election
This commit is contained in:
parent
c6db9eeecc
commit
7734dbd654
@ -212,10 +212,8 @@ public class HeartBeatManagementServiceImpl implements HeartBeatManagementServic
|
||||
presentCandidate.getTimeOfElection().before(new Timestamp(System.currentTimeMillis()
|
||||
- TimeUnit.SECONDS.toMillis(elapsedTimeInSeconds)))) {
|
||||
heartBeatDAO.purgeCandidates();
|
||||
electCandidate(servers);
|
||||
} else {
|
||||
electCandidate(servers);
|
||||
}
|
||||
electCandidate(servers);
|
||||
HeartBeatBeaconDAOFactory.commitTransaction();
|
||||
}
|
||||
} catch (HeartBeatDAOException e) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user