From: Saurav Babu Date: Thu, 17 May 2018 10:05:06 +0000 (+0530) Subject: ip-conflict: Don't remove already removed timer X-Git-Tag: submit/tizen/20180521.002723^2 X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fconnectivity%2Fnet-config.git;a=commitdiff_plain;h=f7232641a99347174fee79be8c5ea97b1a147eea 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 --- 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) {