judge: remove unused tmpdir

This commit is contained in:
undefined committed 2023-01-11 00:26:08 +08:00
1 parent 18d59edc82
commit b292c6cfa3
9 files changed
+8 -42

No files matched your search

+4 -1
View File
@@ -173,7 +173,6 @@ export default class Hydro {
Authorization: `Bearer ${this.config.cookie.split('sid=')[1].split(';')[0]}`,
},
});
global.onDestroy.push(() => this.ws.close());
const content = this.config.minPriority !== undefined
? `{"key":"prio","prio":${this.config.minPriority}}`
: '{"key":"ping"}';
@@ -207,6 +206,10 @@ export default class Hydro {
log.info(`[${this.config.host}] 已连接`);
}
dispose() {
this.ws?.close?.();
}
async setCookie(cookie: string) {
this.config.cookie = cookie;
}