On Mon, 2015-04-13 at 15:46 +0300, Tanu Kaskinen wrote: > On Mon, 2015-04-13 at 14:21 +0200, David Henningsson wrote: > > diff --git a/src/daemon/main.c b/src/daemon/main.c > > index deb1e43..039957f 100644 > > --- a/src/daemon/main.c > > +++ b/src/daemon/main.c > > @@ -1157,6 +1157,7 @@ finish: > > if (c) { > > /* Ensure all the modules/samples are unloaded when the core > > is still ref'ed, > > * as unlink callback hooks in modules may need the core to be > > ref'ed */ > > + c->disallow_module_loading = true; > > pa_module_unload_all(c); > > pa_scache_free_all(c); > > That seems a sensible thing to do, or alternatively check whether the > daemon is shutting down in pa_module_unload(). Sorry, I of course meant pa_module_load(). -- Tanu