From 2139694e823935d3ac1479aa7c9a78ee3ffdc759 Mon Sep 17 00:00:00 2001 From: Tom Gundersen Date: Tue, 22 Apr 2014 19:26:04 +0200 Subject: networkd: link - avoid cycle when failing --- src/network/networkd-link.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/network/networkd-link.c') 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; -- cgit v1.2.3-54-g00ecf