summaryrefslogtreecommitdiff
path: root/src/network
diff options
context:
space:
mode:
authorTom Gundersen <teg@jklm.no>2014-04-22 19:26:04 +0200
committerTom Gundersen <teg@jklm.no>2014-04-22 21:06:00 +0200
commit2139694e823935d3ac1479aa7c9a78ee3ffdc759 (patch)
treebcecf38199c47d83a00523f462b0fdcd6b75e2c9 /src/network
parent111bb8f93a2e936fc62fc2f34350b85c5f0000c8 (diff)
networkd: link - avoid cycle when failing
Diffstat (limited to 'src/network')
-rw-r--r--src/network/networkd-link.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/network/networkd-link.c b/src/network/networkd-link.c
index d9b38c1f6d..653beae1d9 100644
--- a/src/network/networkd-link.c
+++ b/src/network/networkd-link.c
@@ -187,6 +187,9 @@ static int link_stop_clients(Link *link) {
static void link_enter_failed(Link *link) {
assert(link);
+ if (link->state == LINK_STATE_FAILED)
+ return;
+
log_warning_link(link, "failed");
link->state = LINK_STATE_FAILED;