Fix: Refresh Liquid icons every 15 seconds to match electrs.
This commit is contained in:
parent
31e320b2e2
commit
11a6d81a17
@ -155,11 +155,17 @@ class Server {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (Common.isLiquid()) {
|
if (Common.isLiquid()) {
|
||||||
try {
|
const refreshIcons = () => {
|
||||||
icons.loadIcons();
|
try {
|
||||||
} catch (e) {
|
icons.loadIcons();
|
||||||
logger.err('Cannot load liquid icons. Ignoring. Reason: ' + (e instanceof Error ? e.message : e));
|
} catch (e) {
|
||||||
}
|
logger.err('Cannot load liquid icons. Ignoring. Reason: ' + (e instanceof Error ? e.message : e));
|
||||||
|
}
|
||||||
|
};
|
||||||
|
// Run once on startup.
|
||||||
|
refreshIcons();
|
||||||
|
// Matches electrs hard coded refresh interval for asset db.
|
||||||
|
setInterval(refreshIcons, 15000);
|
||||||
}
|
}
|
||||||
|
|
||||||
priceUpdater.$run();
|
priceUpdater.$run();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user