projects
/
oweals
/
tinc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Don't send PING requests on connections which are not active yet.
[oweals/tinc.git]
/
src
/
net.c
diff --git
a/src/net.c
b/src/net.c
index e5ffc4f528bcba92daaad1aa538e0dc283f2c730..b2fe0dece912b1662ca86bc1741594ddf0c9f7f6 100644
(file)
--- 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;
}