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:
parent
111bb8f93a
commit
2139694e82
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user