mirror of
https://github.com/SukkaW/Surge.git
synced 2026-01-29 01:51:52 +08:00
Chore: fix leak thread
This commit is contained in:
@@ -121,9 +121,16 @@ export class Cache {
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
||||
destroy() {
|
||||
this.db.close();
|
||||
}
|
||||
}
|
||||
|
||||
export const fsCache = new Cache({ cachePath: path.resolve(import.meta.dir, '../../.cache') });
|
||||
// export const fsCache = new Cache({ cachePath: path.resolve(import.meta.dir, '../../.cache') });
|
||||
// process.on('exit', () => {
|
||||
// fsCache.destroy();
|
||||
// });
|
||||
|
||||
const separator = String.fromCharCode(0);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user