More work on the blocking resolver
authorMikael Hallendal <micke@imendio.com>
Mon, 14 Jul 2008 00:48:04 +0200
changeset 460 4d978afca525
parent 459 e6e0a95d108a
child 461 f7c5f4b5dadd
More work on the blocking resolver
loudmouth/lm-blocking-resolver.c
--- a/loudmouth/lm-blocking-resolver.c	Mon Jul 14 00:35:25 2008 +0200
+++ b/loudmouth/lm-blocking-resolver.c	Mon Jul 14 00:48:04 2008 +0200
@@ -47,7 +47,8 @@
         resolver_class->lookup = blocking_resolver_lookup;
         resolver_class->cancel = blocking_resolver_cancel;
 	
-	g_type_class_add_private (object_class, sizeof (LmBlockingResolverPriv));
+	g_type_class_add_private (object_class, 
+                                  sizeof (LmBlockingResolverPriv));
 }
 
 static void
@@ -65,6 +66,9 @@
 
 	priv = GET_PRIV (object);
 
+        /* Ensure we don't have an idle around */
+        blocking_resolver_cancel (LM_RESOLVER (object));
+
 	(G_OBJECT_CLASS (lm_blocking_resolver_parent_class)->finalize) (object);
 }
 
@@ -75,6 +79,9 @@
 
         /* Start the DNS querying */
 
+
+
+        /* End of DNS querying */
         priv->idle_id = 0;
         return FALSE;
 }