]> code.delx.au - pulseaudio/commitdiff
unload tunnel modules from a new stack frame
authorLennart Poettering <lennart@poettering.net>
Wed, 17 Dec 2008 20:27:07 +0000 (21:27 +0100)
committerLennart Poettering <lennart@poettering.net>
Wed, 17 Dec 2008 20:27:07 +0000 (21:27 +0100)
src/modules/module-zeroconf-discover.c

index c8087abbd22d9fd917de11df3e7fc29b729f8f9e..9a867cb51b7ca61cedac018321afeccb8f355791 100644 (file)
@@ -286,7 +286,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);
         }
@@ -427,7 +427,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);
         }