Commit 0a6b665f authored by Juliusz Chroboczek's avatar Juliusz Chroboczek

Don't send updates on downed networks.

parent 40a6ec07
...@@ -722,6 +722,9 @@ send_update(struct network *net, int urgent, ...@@ -722,6 +722,9 @@ send_update(struct network *net, int urgent,
return; return;
} }
if(!net->up)
return;
if(parasitic || (silent_time && now.tv_sec < reboot_time + silent_time)) { if(parasitic || (silent_time && now.tv_sec < reboot_time + silent_time)) {
if(prefix == NULL) { if(prefix == NULL) {
send_self_update(net, 0); send_self_update(net, 0);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment