diff --git a/app.js b/app.js index 0624e54..7af1688 100644 --- a/app.js +++ b/app.js @@ -67,7 +67,9 @@ global.syzoj = { })()); await this.connectDatabase(); - await this.lib('judger').connect(); + if (!module.parent) { + await this.lib('judger').connect(); + } this.loadModules(); }, async connectDatabase() {