}
void retry_outgoing(meshlink_handle_t *mesh, outgoing_t *outgoing) {
- if(!mesh->reachable && mesh->loop.now.tv_sec < mesh->last_unreachable + mesh->dev_class_traits[mesh->devclass].fast_retry_period) {
+ if(!mesh->reachable && mesh->loop.now.tv_sec < mesh->last_unreachable + mesh->dev_class_traits[outgoing->node->devclass].fast_retry_period) {
outgoing->timeout = 1;
} else {
outgoing->timeout += 5;
outgoing->ai = NULL;
outgoing->aip = NULL;
- outgoing->state = OUTGOING_RECENT;
+ outgoing->state = OUTGOING_END;
}
if(outgoing->state == OUTGOING_RECENT) {