dhcp_invalidate is called it no_lease_cb, which one actually starts the
retry callback and the ipv4ll task, thus this is bogus to remove them
right after.
---
src/dhcp.c | 8 --------
1 file changed, 8 deletions(-)
diff --git a/src/dhcp.c b/src/dhcp.c
index bc47c8a..3cacb6a 100644
--- a/src/dhcp.c
+++ b/src/dhcp.c
@@ -145,14 +145,6 @@ static void dhcp_invalidate(struct connman_dhcp *dhcp,
bool callback)
__connman_ipconfig_set_gateway(ipconfig, NULL);
__connman_ipconfig_set_prefixlen(ipconfig, 0);
- if (dhcp->timeout > 0) {
- g_source_remove(dhcp->timeout);
- dhcp->timeout = 0;
- }
-
- if (ipv4ll_running)
- ipv4ll_stop_client(dhcp);
-
if (dhcp->callback && callback)
dhcp->callback(dhcp->network, false, NULL);
}
--
1.8.5.5
_______________________________________________
connman mailing list
[email protected]
https://lists.connman.net/mailman/listinfo/connman