v1.15.3
This commit is contained in:
parent
985b41a5c1
commit
dccf58453c
2 changed files with 5 additions and 1 deletions
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"name": "vencord",
|
||||
"private": "true",
|
||||
"version": "1.15.2",
|
||||
"version": "1.15.3",
|
||||
"description": "The cutest Discord client mod",
|
||||
"homepage": "https://github.com/Vendicated/Vencord#readme",
|
||||
"bugs": {
|
||||
|
|
|
|||
|
|
@ -15,6 +15,10 @@ export class TTLMap<K, V> extends Map<K, V> {
|
|||
}
|
||||
|
||||
public set(key: K, value: V) {
|
||||
if (this._timers.has(key)) {
|
||||
clearTimeout(this._timers.get(key));
|
||||
}
|
||||
|
||||
const timeoutId = setTimeout(() => {
|
||||
this.delete(key);
|
||||
this.onExpire?.(key, value);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue