From f7232641a99347174fee79be8c5ea97b1a147eea Mon Sep 17 00:00:00 2001 From: Saurav Babu Date: Thu, 17 May 2018 15:35:06 +0530 Subject: [PATCH] ip-conflict: Don't remove already removed timer sd->timer_id is already removed in the callback function, it is not required to remove this source again Change-Id: I977d923ce03657d93f28fcf13472321b1b420896 Signed-off-by: Saurav Babu --- src/ip-conflict-detect.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/ip-conflict-detect.c b/src/ip-conflict-detect.c index fab3976..adb9124 100755 --- a/src/ip-conflict-detect.c +++ b/src/ip-conflict-detect.c @@ -127,8 +127,6 @@ static gboolean __arp_reply_timeout_cb(gpointer data) sd->iteration++; sd->arp_reply_timer = -1; - if (sd->timer_id != -1) - g_source_remove(sd->timer_id); if (conflict_state != NETCONFIG_IP_CONFLICT_STATE_CONFLICT_NOT_DETECTED && sd->iteration == CONFLICT_REMOVE_ITERATION_LIMIT) { -- 2.34.1