1
0
mirror of https://github.com/systemd/systemd.git synced 2024-11-06 08:26:52 +03:00

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

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;