X-Git-Url: https://tinc-vpn.org/git/browse?p=tinc;a=blobdiff_plain;f=src%2Fnet.c;h=b2fe0dece912b1662ca86bc1741594ddf0c9f7f6;hp=e5ffc4f528bcba92daaad1aa538e0dc283f2c730;hb=6430f8165eb574d78fc4ab18054d32f36c2f241d;hpb=7df18f17d159a5f410ff2f1395198a3496a80fd4 diff --git a/src/net.c b/src/net.c index e5ffc4f5..b2fe0dec 100644 --- a/src/net.c +++ b/src/net.c @@ -490,7 +490,8 @@ int main_loop(void) { expire_events(); for(node = connection_tree->head; node; node = node->next) { connection_t *c = node->data; - send_ping(c); + if(c->status.active) + send_ping(c); } sigalrm = false; }