Skip to content

Commit 8cf34b2

Browse files
author
Michael Vasseur
committed
Use non-internal function which handles the disabling already
As suggested by @meisterT.
1 parent c31347b commit 8cf34b2

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

judge/judgedaemon.main.php

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -896,16 +896,13 @@ function fetch_executable_internal(
896896
// Full debug package requested.
897897
$run_config = dj_json_decode($judgeTask['run_config']);
898898
$tmpfile = tempnam(TMPDIR, 'full_debug_package_');
899-
[$runpath, $error] = fetch_executable_internal(
899+
[$runpath, $error] = fetch_executable(
900900
$workdirpath,
901901
'debug',
902902
$judgeTask['run_script_id'],
903-
$run_config['hash']
903+
$run_config['hash'],
904+
$judgeTask['judgetaskid']
904905
);
905-
if (isset($error)) {
906-
$scriptId = $judgeTask['run_script_id'];
907-
disable('judgehost', 'hostname', $myhost, "Retrieving/storing debug script '$scriptId' failed.");
908-
}
909906

910907
$debug_cmd = implode(' ', array_map('dj_escapeshellarg',
911908
[$runpath, $workdir, $tmpfile]));

0 commit comments

Comments
 (0)