mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
rating系统(测试
This commit is contained in:
1 parent
508f5644c3
commit
4aa1c9fe1f
7 files changed
+131
-5
No files matched your search
@@ -8,6 +8,17 @@ process.stdin.on('data', async (input) => {
|
||||
console.warn(e);
|
||||
}
|
||||
});
|
||||
process.on('unhandledRejection', (e) => console.log(e));
|
||||
|
||||
global.onDestory = [];
|
||||
async function terminate() {
|
||||
for (const task of global.onDestory) {
|
||||
// eslint-disable-next-line no-await-in-loop
|
||||
await task();
|
||||
}
|
||||
process.exit(0);
|
||||
}
|
||||
process.on('SIGINT', terminate);
|
||||
|
||||
require('./loader').load().catch((e) => {
|
||||
console.error(e);
|
||||
|
||||
Reference in new issue
Block a user