diff options
author | Lennart Poettering <lennart@poettering.net> | 2004-09-04 00:27:36 +0000 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2004-09-04 00:27:36 +0000 |
commit | 57e473b61cf373f8d9befb03d359b999eca4262b (patch) | |
tree | 0c4d0798db9c4ecf4804aaaff60e9fe8b30ac0f6 /polyp/module.c | |
parent | fb962b67dbeb54d1cdd453c6f902b7c679b9197f (diff) |
add support for automatic termination of the daemon after the last client quit
remove all gcc warnings
add boolean types for tagstruct and modargs
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@178 fefdeb5f-60dc-0310-8127-8f9354f1896f
Diffstat (limited to 'polyp/module.c')
-rw-r--r-- | polyp/module.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/polyp/module.c b/polyp/module.c index fc714953..a06b2754 100644 --- a/polyp/module.c +++ b/polyp/module.c @@ -117,6 +117,10 @@ fail: static void pa_module_free(struct pa_module *m) { assert(m && m->done && m->core); + + if (m->core->disallow_module_loading) + return; + m->done(m->core, m); lt_dlclose(m->dl); @@ -130,7 +134,6 @@ static void pa_module_free(struct pa_module *m) { pa_xfree(m); } - void pa_module_unload(struct pa_core *c, struct pa_module *m) { assert(c && m); |