ip-conflict: Don't remove already removed timer 57/179357/1
authorSaurav Babu <saurav.babu@samsung.com>
Thu, 17 May 2018 10:05:06 +0000 (15:35 +0530)
committerSaurav Babu <saurav.babu@samsung.com>
Thu, 17 May 2018 10:05:06 +0000 (15:35 +0530)
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 <saurav.babu@samsung.com>
src/ip-conflict-detect.c

index fab3976..adb9124 100755 (executable)
@@ -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) {