When online-monitor is stopped, removing an easy handle while being
used effectively stop the transfer in progress involving that easy handle.
Reference: https://curl.se/libcurl/c/curl_multi_remove_handle.html
Change-Id: Ia6e72688cbfe03140fe26a85e286fb3c913ed547
Signed-off-by: Niraj Kumar Goit <niraj.g@samsung.com>
DBG("state %d, ifname %s, reason %d", state, ifname, reason);
if (state == ONLINE_MONITOR_STATE_OFFLINE_DETECTED)
start_url_check();
+ else if (state == ONLINE_MONITOR_STATE_MONITORING_STOPPED)
+ _curl_state_cleanup(); /* stop ongoing curl request */
}
int url_checker_init(void)