mirror of
https://github.com/systemd/systemd.git
synced 2024-10-28 20:25:38 +03:00
libsystemd-dhcp: don't assert on client_stop()
We need to be able to stop the dhcp client at any time, and the function appears to be written to handle this.
This commit is contained in:
parent
b1b532f58c
commit
a2db1d6b3f
@ -260,8 +260,6 @@ static int client_notify(sd_dhcp_client *client, int event)
|
||||
static int client_stop(sd_dhcp_client *client, int error)
|
||||
{
|
||||
assert_return(client, -EINVAL);
|
||||
assert_return(client->state != DHCP_STATE_INIT &&
|
||||
client->state != DHCP_STATE_INIT_REBOOT, -EALREADY);
|
||||
|
||||
client->receive_message =
|
||||
sd_event_source_unref(client->receive_message);
|
||||
|
Loading…
Reference in New Issue
Block a user