fix(ags): only remove source of interval once
This commit is contained in:
parent
31ece1083a
commit
bb7a001eb8
1 changed files with 2 additions and 0 deletions
|
@ -21,6 +21,7 @@ const Popups = () => Box({
|
|||
timeout(200, () => {
|
||||
if (box._map.get(id).interval) {
|
||||
source_remove(box._map.get(id).interval);
|
||||
box._map.get(id).interval = undefined;
|
||||
}
|
||||
box._map.get(id)?.destroy();
|
||||
box._map.delete(id);
|
||||
|
@ -47,6 +48,7 @@ const Popups = () => Box({
|
|||
|
||||
if (box._map.get(id).interval) {
|
||||
source_remove(box._map.get(id).interval);
|
||||
box._map.get(id).interval = undefined;
|
||||
}
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue