Skip to content
Snippets Groups Projects
Commit 2dc4e55b authored by Cédric Moreau's avatar Cédric Moreau
Browse files

Fix: flooding log "Asking for SELFPEER"

parent 99b809b6
No related branches found
No related tags found
No related merge requests found
......@@ -97,9 +97,9 @@ function Daemon () {
// Case 1: just triggers self-vote
if (daemon.judges.timeForVote(amNext)) {
// Must be a voter to vote!
logger.debug("Asking vote for SELF peer");
Key.wasVoter(selfFingerprint, current.number, function (err, wasVoter) {
if (!err && wasVoter) {
logger.debug("Asking vote for SELF peer");
askVote(current, PeeringService.peer(), function (err, json) {
// Do nothing with result: it has been done by SyncService (self-submitted the vote)
callback(err);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment