summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2008-06-11 16:55:43 +0000
committerLennart Poettering <lennart@poettering.net>2008-06-11 16:55:43 +0000
commit46d17f0a6119bc6b3af6738e3d274c1ec0c7d8e1 (patch)
tree787d4e0671f4a02cf392eb625e09bc77e8d4d08e /src
parentf7ff9e2dd28c4aeebaad57c3026238be2bde5e02 (diff)
reformat things
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@2510 fefdeb5f-60dc-0310-8127-8f9354f1896f
Diffstat (limited to 'src')
-rw-r--r--src/pulsecore/core.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/pulsecore/core.c b/src/pulsecore/core.c
index a1bd0204..b22f4815 100644
--- a/src/pulsecore/core.c
+++ b/src/pulsecore/core.c
@@ -209,11 +209,16 @@ static void quit_callback(pa_mainloop_api*m, pa_time_event *e, PA_GCC_UNUSED con
void pa_core_check_quit(pa_core *c) {
pa_assert(c);
- if (!c->quit_event && c->exit_idle_time >= 0 && pa_idxset_size(c->clients) == 0) {
+ if (!c->quit_event &&
+ c->exit_idle_time >= 0 &&
+ pa_idxset_size(c->clients) == 0) {
+
struct timeval tv;
pa_gettimeofday(&tv);
tv.tv_sec+= c->exit_idle_time;
+
c->quit_event = c->mainloop->time_new(c->mainloop, &tv, quit_callback, c);
+
} else if (c->quit_event && pa_idxset_size(c->clients) > 0) {
c->mainloop->time_free(c->quit_event);
c->quit_event = NULL;