summaryrefslogtreecommitdiffstats
path: root/polyp/module.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2004-09-13 23:28:30 +0000
committerLennart Poettering <lennart@poettering.net>2004-09-13 23:28:30 +0000
commit829656c5fcd7169e4c2f86f4ad5098ea9aaa5643 (patch)
treeedbca9829ad4b7dfa67f6d7515b3c3c66cc58338 /polyp/module.c
parentfbefe67d52eb89a429505c653d1ea4ce73d4f4e7 (diff)
new configuration subsystem
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@198 fefdeb5f-60dc-0310-8127-8f9354f1896f
Diffstat (limited to 'polyp/module.c')
-rw-r--r--polyp/module.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/polyp/module.c b/polyp/module.c
index c66faeb8..db21f790 100644
--- a/polyp/module.c
+++ b/polyp/module.c
@@ -38,7 +38,7 @@
#define PA_SYMBOL_INIT "pa__init"
#define PA_SYMBOL_DONE "pa__done"
-#define UNLOAD_POLL_TIME 10
+#define UNLOAD_POLL_TIME 2
static void timeout_callback(struct pa_mainloop_api *m, struct pa_time_event*e, const struct timeval *tv, void *userdata) {
struct pa_core *c = userdata;
@@ -193,7 +193,7 @@ static int unused_callback(void *p, uint32_t index, int *del, void *userdata) {
time_t *now = userdata;
assert(p && del && now);
- if (m->n_used == 0 && m->auto_unload && m->last_used_time+m->core->auto_unload_time <= *now) {
+ if (m->n_used == 0 && m->auto_unload && m->last_used_time+m->core->module_idle_time <= *now) {
pa_module_free(m);
*del = 1;
}