diff --git a/webapp/src/Controller/API/JudgehostController.php b/webapp/src/Controller/API/JudgehostController.php index aec6200b6d..cb0bef622c 100644 --- a/webapp/src/Controller/API/JudgehostController.php +++ b/webapp/src/Controller/API/JudgehostController.php @@ -1070,7 +1070,7 @@ private function addSingleJudgingRun( } // Send an event for an endtime (and max runtime update). - if ($sendJudgingEvent) { + if ($sendJudgingEvent && $judging->getValid()) { $this->eventLogService->log('judging', $judging->getJudgingid(), EventLogService::ACTION_UPDATE, $judging->getContest()->getCid()); }