diff --git a/server/cron.php b/server/cron.php
index 6d7aa49785f1fdd2c561dd1578b1f2b569307e12..ef13d06e2f3b072c4d806db6f236325e25153339 100644
--- a/server/cron.php
+++ b/server/cron.php
@@ -55,9 +55,11 @@ if(is_file($lockFile)) {
 					exit;
 				}
 			}
+		} else {
+			if($conf['log_priority'] <= LOGLEVEL_WARN) print @date('d.m.Y-H:i').' - WARNING - There is already a lockfile set, but no process running with this pid (' . $pid . '). Continuing.' . "\n";
+
 		}
 	}
-	if($conf['log_priority'] <= LOGLEVEL_WARN) print @date('d.m.Y-H:i').' - WARNING - There is already a lockfile set, but no process running with this pid (' . $pid . '). Continuing.' . "\n";
 }
 
 // Set Lockfile