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:
Tom Gundersen
2014-01-03 01:42:26 +01:00
parent b1b532f58c
commit a2db1d6b3f
-2
View File
@@ -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);