diff options
author | Tom Gundersen <teg@jklm.no> | 2014-04-22 19:26:04 +0200 |
---|---|---|
committer | Tom Gundersen <teg@jklm.no> | 2014-04-22 21:06:00 +0200 |
commit | 2139694e823935d3ac1479aa7c9a78ee3ffdc759 (patch) | |
tree | bcecf38199c47d83a00523f462b0fdcd6b75e2c9 /src/network/networkd-link.c | |
parent | 111bb8f93a2e936fc62fc2f34350b85c5f0000c8 (diff) |
networkd: link - avoid cycle when failing
Diffstat (limited to 'src/network/networkd-link.c')
-rw-r--r-- | src/network/networkd-link.c | 3 |
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; |