summaryrefslogtreecommitdiff
path: root/scheduler/main.c
diff options
context:
space:
mode:
authorMichael R Sweet <michaelrsweet@gmail.com>2017-11-08 17:30:45 -0500
committerMichael R Sweet <michaelrsweet@gmail.com>2017-11-08 17:30:45 -0500
commiteb2cb9b09fb5ecc44c8b369675ebf06b130a44d7 (patch)
tree602452009e10974770fcc085c633b9f2e6e13ad5 /scheduler/main.c
parentd56216499ef5d01c88e33b1ced53c0e427b4683c (diff)
downloadcups-eb2cb9b09fb5ecc44c8b369675ebf06b130a44d7.tar.gz
The scheduler did not write out dirty configuration and state files if there
were open client connections (Issue #5118) (reverted b393bc2)
Diffstat (limited to 'scheduler/main.c')
-rw-r--r--scheduler/main.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/scheduler/main.c b/scheduler/main.c
index 8925c8373..78bd757e1 100644
--- a/scheduler/main.c
+++ b/scheduler/main.c
@@ -4,11 +4,8 @@
* Copyright 2007-2017 by Apple Inc.
* Copyright 1997-2007 by Easy Software Products, all rights reserved.
*
- * These coded instructions, statements, and computer programs are the
- * property of Apple Inc. and are protected by Federal copyright
- * law. Distribution and use rights are outlined in the file "LICENSE.txt"
- * "LICENSE" which should have been included with this file. If this
- * file is missing or damaged, see the license at "http://www.cups.org/".
+ * Licensed under Apache License v2.0. See the file "LICENSE" for more
+ * information.
*/
/*
@@ -893,7 +890,7 @@ main(int argc, /* I - Number of command-line args */
* Write dirty config/state files...
*/
- if (DirtyCleanTime && current_time >= DirtyCleanTime && cupsArrayCount(Clients) == 0)
+ if (DirtyCleanTime && current_time >= DirtyCleanTime)
cupsdCleanDirty();
#ifdef __APPLE__