mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-18 01:36:08 +08:00
core: catch error caused by postJudge
This commit is contained in:
1 parent
77b08c9e7c
commit
5357d5611b
2 files changed
+2
-2
No files matched your search
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "hydrooj",
|
||||
"version": "2.28.53",
|
||||
"version": "2.28.54",
|
||||
"bin": "bin/hydrooj.js",
|
||||
"main": "dist/loader.js",
|
||||
"typings": "dist/loader.d.ts",
|
||||
|
||||
@@ -162,7 +162,7 @@ class JudgeConnectionHandler extends ConnectionHandler {
|
||||
if (msg.key !== 'ping') logger.info('%o', msg);
|
||||
if (msg.key === 'next') await next(msg);
|
||||
else if (msg.key === 'end') {
|
||||
await end({ judger: this.user._id, ...msg });
|
||||
await end({ judger: this.user._id, ...msg }).catch((e) => logger.error(e));
|
||||
this.processing = null;
|
||||
await this.newTask();
|
||||
} else if (msg.key === 'status') {
|
||||
|
||||
Reference in new issue
Block a user