Don't report error when dropping a packet due to no peers

This commit is contained in:
Jeremy Lakeman 2014-03-27 13:31:43 +10:30
parent 2226a529af
commit 89f6d533cd

View File

@ -188,9 +188,11 @@ int overlay_payload_enqueue(struct overlay_frame *p)
// just drop it now
if (p->destination_count == 0){
if (config.debug.verbose && config.debug.overlayframes)
DEBUGF("Not transmitting, as we have no neighbours on any interface");
return -1;
if (config.debug.mdprequests)
DEBUGF("Not transmitting, as we have nowhere to send it");
// free the packet and return success.
op_free(p);
return 0;
}
}