diff options
-rwxr-xr-x | src/dhcp.c | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -257,9 +257,12 @@ static void no_lease_cb(GDHCPClient *dhcp_client, gpointer user_data) DBG("No lease available ipv4ll %d client %p", ipv4ll_running, dhcp->ipv4ll_client); + if (dhcp->timeout > 0) + g_source_remove(dhcp->timeout); + dhcp->timeout = g_timeout_add_seconds(RATE_LIMIT_INTERVAL, - dhcp_retry_cb, - dhcp); + dhcp_retry_cb, + dhcp); if (ipv4ll_running) return; |