core: catch error caused by postJudge

This commit is contained in:
undefined committed 2021-06-27 11:26:25 +08:00
1 parent 77b08c9e7c
commit 5357d5611b
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -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",
+1 -1
View File
@@ -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') {