Skip to content

Commit ae9a946

Browse files
Do not send a judging update event for judgements that aren't valid (yet).
Fixes #2370.
1 parent 9716802 commit ae9a946

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

webapp/src/Controller/API/JudgehostController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1070,7 +1070,7 @@ private function addSingleJudgingRun(
10701070
}
10711071

10721072
// Send an event for an endtime (and max runtime update).
1073-
if ($sendJudgingEvent) {
1073+
if ($sendJudgingEvent && $judging->getValid()) {
10741074
$this->eventLogService->log('judging', $judging->getJudgingid(),
10751075
EventLogService::ACTION_UPDATE, $judging->getContest()->getCid());
10761076
}

0 commit comments

Comments
 (0)