fix(ags): only remove source of interval once

This commit is contained in:
matt1432 2023-09-14 17:24:40 -04:00
parent 31ece1083a
commit bb7a001eb8

View file

@ -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;
}
}
});