Browse Source

feat:代码健壮性完善。

pull/24/head
zjz1993 5 years ago
parent
commit
4ae2dd38e0
  1. 2
      libs/judger.js

2
libs/judger.js

@ -208,7 +208,7 @@ async function connect() {
judge_state.result = convertedResult.result; judge_state.result = convertedResult.result;
await judge_state.save(); await judge_state.save();
await judge_state.updateRelatedInfo(false); await judge_state.updateRelatedInfo(false);
} else if (result.type == interface.ProgressReportType.Compiled) { } else if (result.type === interface.ProgressReportType.Compiled) {
if (!judge_state) return; if (!judge_state) return;
judge_state.compilation = result.progress; judge_state.compilation = result.progress;
await judge_state.save(); await judge_state.save();

Loading…
Cancel
Save