core: judge: wait 100ms before first task

This commit is contained in:
undefined committed 2021-09-16 21:57:58 +08:00
1 parent 36149301b0
commit e7fbf98381
2 files changed
+3 -1

No files matched your search

+2
View File
@@ -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();
}