summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJukka Rissanen <jukka.rissanen@linux.intel.com>2012-10-16 14:19:25 (GMT)
committerPatrik Flykt <patrik.flykt@linux.intel.com>2012-10-16 15:10:11 (GMT)
commitd10e68006b3dc9d49df31738ffd896df30391431 (patch)
treecf7de729f5ceef2dccd0f3936b9baa442e60891c
parent9e9cf7a8800d634a5e04b0396f209cdefdb34e98 (diff)
downloadconnman-d10e68006b3dc9d49df31738ffd896df30391431.zip
connman-d10e68006b3dc9d49df31738ffd896df30391431.tar.gz
connman-d10e68006b3dc9d49df31738ffd896df30391431.tar.bz2
gresolv: Remove the lookup for real
The call to g_resolv_cancel_lookup() will do nothing because we just removed the lookup from the queue. The fix is to remove the lookup directly and not call the cancel function.
-rw-r--r--gweb/gresolv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gweb/gresolv.c b/gweb/gresolv.c
index fd4cf10..8ff8619 100644
--- a/gweb/gresolv.c
+++ b/gweb/gresolv.c
@@ -875,7 +875,7 @@ void g_resolv_unref(GResolv *resolv)
return;
while ((lookup = g_queue_pop_head(resolv->lookup_queue)))
- g_resolv_cancel_lookup(resolv, lookup->id);
+ destroy_lookup(lookup);
while ((query = g_queue_pop_head(resolv->query_queue)))
destroy_query(query);