summaryrefslogtreecommitdiffstats
path: root/src/daemon/main.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2008-10-07 02:00:07 +0200
committerLennart Poettering <lennart@poettering.net>2008-10-07 02:01:42 +0200
commitc8a963af0270c5fbc125ea34da6538198f524189 (patch)
tree0920b5049aecfaef8a1ab5a37eefa3084c7716fa /src/daemon/main.c
parentfa93cb71e83df6ee9e91d04687829a049ea18ec5 (diff)
Initialize exit_idle_time to -1 instead of 0 when in system mode.
Spotted by Rafał Mużyło.
Diffstat (limited to 'src/daemon/main.c')
-rw-r--r--src/daemon/main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/daemon/main.c b/src/daemon/main.c
index fad635f0..bc8bc63e 100644
--- a/src/daemon/main.c
+++ b/src/daemon/main.c
@@ -646,9 +646,9 @@ int main(int argc, char *argv[]) {
conf->disable_shm = TRUE;
}
- if (conf->system_instance && conf->exit_idle_time > 0) {
+ if (conf->system_instance && conf->exit_idle_time >= 0) {
pa_log_notice(_("Running in system mode, forcibly disabling exit idle time!"));
- conf->exit_idle_time = 0;
+ conf->exit_idle_time = -1;
}
if (conf->cmd == PA_CMD_START) {