Skip to content

Commit 2fd4b02

Browse files
committed
core: fix ide conn after scoreboard freeze
1 parent d5f5126 commit 2fd4b02

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/hydrooj/src/handler/record.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,7 @@ class RecordMainConnectionHandler extends ConnectionHandler {
333333
if (!this.all) {
334334
if (rdoc.contest && ![this.tid, '000000000000000000000000'].includes(rdoc.contest.toString())) return;
335335
if (this.tid && rdoc.contest?.toString() !== '0'.repeat(24)) {
336-
if (contest.isLocked(this.tdoc)) return;
336+
if (contest.isLocked(this.tdoc) && !this.pretest) return;
337337
if (!contest.canShowSelfRecord.call(this, this.tdoc, true)) return;
338338
}
339339
}

0 commit comments

Comments
 (0)