raop: Use pa_module_unload_request_by_index as per module-zeroconf-discover
authorColin Guthrie <cguthrie@mandriva.org>
Wed, 16 Sep 2009 19:54:51 +0000 (20:54 +0100)
committerColin Guthrie <cguthrie@mandriva.org>
Thu, 17 Sep 2009 23:22:01 +0000 (00:22 +0100)
src/modules/raop/module-raop-discover.c

index eaeb77f..adba8e4 100644 (file)
@@ -265,7 +265,7 @@ static void browser_cb(
         struct tunnel *t2;
 
         if ((t2 = pa_hashmap_get(u->tunnels, t))) {
-            pa_module_unload_by_index(u->core, t2->module_index, TRUE);
+            pa_module_unload_request_by_index(u->core, t2->module_index, TRUE);
             pa_hashmap_remove(u->tunnels, t2);
             tunnel_free(t2);
         }
@@ -386,7 +386,7 @@ void pa__done(pa_module*m) {
         struct tunnel *t;
 
         while ((t = pa_hashmap_steal_first(u->tunnels))) {
-            pa_module_unload_by_index(u->core, t->module_index, TRUE);
+            pa_module_unload_request_by_index(u->core, t->module_index, TRUE);
             tunnel_free(t);
         }