summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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);