Skip to content

Commit

Permalink
Actually I was right the first time, we want to send periodic empty m…
Browse files Browse the repository at this point in the history
…essages which are accepted but discarded by the snode
  • Loading branch information
cjdelisle committed Mar 19, 2017
1 parent 0e5017b commit 2891fc6
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions subnode/ReachabilityAnnouncer.c
Original file line number Diff line number Diff line change
Expand Up @@ -593,13 +593,6 @@ static void onAnnounceCycle(void* vRap)
Message_push(msg, &version, Announce_Version_SIZE, NULL);

Message_push(msg, NULL, Announce_Header_SIZE, NULL);

} else if (!Announce_Peer_next(msg, NULL)) {
// We're making an announcement with no content, we can safely skip this :)
rap->msgOnWire = NULL;
Allocator_free(msg->alloc);
Log_debug(rap->log, "No need to send a message as there are no peer updates to make");
return;
}

struct Announce_Header* hdr = (struct Announce_Header*) msg->bytes;
Expand Down

0 comments on commit 2891fc6

Please sign in to comment.