summaryrefslogtreecommitdiffstats
path: root/src/pulsecore/module.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2008-06-11 16:55:26 +0000
committerLennart Poettering <lennart@poettering.net>2008-06-11 16:55:26 +0000
commitf7ff9e2dd28c4aeebaad57c3026238be2bde5e02 (patch)
tree0e94994dec63ddd389634b70c58b83ce8fc2e29e /src/pulsecore/module.c
parent2cc95df8598c1bfab96c165b42bd74c0fe04d115 (diff)
install auto unload time event only when we have at least one auto unload module
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@2509 fefdeb5f-60dc-0310-8127-8f9354f1896f
Diffstat (limited to 'src/pulsecore/module.c')
-rw-r--r--src/pulsecore/module.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pulsecore/module.c b/src/pulsecore/module.c
index 8e5bd2d1..cee8061b 100644
--- a/src/pulsecore/module.c
+++ b/src/pulsecore/module.c
@@ -120,7 +120,7 @@ pa_module* pa_module_load(pa_core *c, const char *name, const char *argument) {
if (!c->modules)
c->modules = pa_idxset_new(NULL, NULL);
- if (!c->module_auto_unload_event) {
+ if (m->auto_unload && !c->module_auto_unload_event) {
struct timeval ntv;
pa_gettimeofday(&ntv);
pa_timeval_add(&ntv, UNLOAD_POLL_TIME*1000000);