mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
core: judge: wait 100ms before first task
This commit is contained in:
1 parent
36149301b0
commit
e7fbf98381
2 files changed
+3
-1
No files matched your search
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "hydrooj",
|
||||
"version": "2.35.5",
|
||||
"version": "2.35.6",
|
||||
"bin": "bin/hydrooj.js",
|
||||
"main": "src/loader",
|
||||
"module": "src/loader",
|
||||
|
||||
@@ -140,6 +140,8 @@ class JudgeConnectionHandler extends ConnectionHandler {
|
||||
this.send({ language: setting.langs });
|
||||
this.sendLanguageConfig = this.sendLanguageConfig.bind(this);
|
||||
bus.on('system/setting', this.sendLanguageConfig);
|
||||
// Ensure language sent
|
||||
await sleep(100);
|
||||
this.newTask();
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user