mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +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",
|
"name": "hydrooj",
|
||||||
"version": "2.28.53",
|
"version": "2.28.54",
|
||||||
"bin": "bin/hydrooj.js",
|
"bin": "bin/hydrooj.js",
|
||||||
"main": "dist/loader.js",
|
"main": "dist/loader.js",
|
||||||
"typings": "dist/loader.d.ts",
|
"typings": "dist/loader.d.ts",
|
||||||
|
|||||||
@@ -162,7 +162,7 @@ class JudgeConnectionHandler extends ConnectionHandler {
|
|||||||
if (msg.key !== 'ping') logger.info('%o', msg);
|
if (msg.key !== 'ping') logger.info('%o', msg);
|
||||||
if (msg.key === 'next') await next(msg);
|
if (msg.key === 'next') await next(msg);
|
||||||
else if (msg.key === 'end') {
|
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;
|
this.processing = null;
|
||||||
await this.newTask();
|
await this.newTask();
|
||||||
} else if (msg.key === 'status') {
|
} else if (msg.key === 'status') {
|
||||||
|
|||||||
Reference in new issue
Block a user