changeset 337:30a300660a9a

Lets not run maintenance on single listdirs (-L) continously but be nice and sleep
author mmj
date Tue, 14 Sep 2004 08:47:55 +1000
parents 6232225251c7
children 60da8d3ef63e
files src/mlmmj-maintd.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/mlmmj-maintd.c	Mon Sep 13 04:14:49 2004 +1000
+++ b/src/mlmmj-maintd.c	Tue Sep 14 08:47:55 2004 +1000
@@ -905,7 +905,7 @@
 		if(listdir) {
 			do_maintenance(listdir, mlmmjsend, mlmmjbounce,
 					mlmmjunsub);
-			continue;
+			goto mainsleep;
 		}
 
 		if(chdir(dirlists) < 0) {
@@ -959,6 +959,7 @@
 
 		closedir(dirp);
 
+mainsleep:
 		if(!daemonize)
 			break;
 		else