mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-03 09:01:50 -05:00
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
This commit is contained in:
parent
2cc95df859
commit
f7ff9e2dd2
1 changed files with 1 additions and 1 deletions
|
|
@ -120,7 +120,7 @@ pa_module* pa_module_load(pa_core *c, const char *name, const char *argument) {
|
||||||
if (!c->modules)
|
if (!c->modules)
|
||||||
c->modules = pa_idxset_new(NULL, NULL);
|
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;
|
struct timeval ntv;
|
||||||
pa_gettimeofday(&ntv);
|
pa_gettimeofday(&ntv);
|
||||||
pa_timeval_add(&ntv, UNLOAD_POLL_TIME*1000000);
|
pa_timeval_add(&ntv, UNLOAD_POLL_TIME*1000000);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue