networkd: link - avoid cycle when failing

This commit is contained in:
Tom Gundersen 2014-04-22 19:26:04 +02:00
parent 111bb8f93a
commit 2139694e82
1 changed files with 3 additions and 0 deletions

View File

@ -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;