diff --git a/src/Server.php b/src/Server.php index f31a730aa..90d96d047 100644 --- a/src/Server.php +++ b/src/Server.php @@ -1564,7 +1564,8 @@ class Server{ $stamp = Path::join($this->getDataPath(), "crashdumps", ".last_crash"); $crashInterval = 120; //2 minutes - if(($lastReportTime = @filemtime($stamp)) !== false and !($report = ($lastReportTime + $crashInterval < time()))){ + if(($lastReportTime = @filemtime($stamp)) !== false and $lastReportTime + $crashInterval >= time()){ + $report = false; $this->logger->debug("Not sending crashdump due to last crash less than $crashInterval seconds ago"); } @touch($stamp); //update file timestamp