mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-21 01:46:28 +08:00
judge: remove unused tmpdir
This commit is contained in:
1 parent
18d59edc82
commit
b292c6cfa3
9 files changed
+8
-42
No files matched your search
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user