Commit cad6d0e8 authored by Hannu Mallat's avatar Hannu Mallat

[connman] proxy: remove timeout on proxy cleanup

Make sure the timeout source is cleaned when proxy_lookup struct is
deallocated.
parent fb24bc4b
......@@ -44,6 +44,9 @@ struct proxy_lookup {
static void remove_lookup(struct proxy_lookup *lookup)
{
if (lookup->watch > 0)
g_source_remove(lookup->watch);
lookup_list = g_slist_remove(lookup_list, lookup);
connman_service_unref(lookup->service);
......@@ -150,11 +153,6 @@ void connman_proxy_lookup_cancel(unsigned int token)
}
if (lookup) {
if (lookup->watch > 0) {
g_source_remove(lookup->watch);
lookup->watch = 0;
}
if (lookup->proxy &&
lookup->proxy->cancel_lookup)
lookup->proxy->cancel_lookup(lookup->service,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment