This commit is contained in:
Daniel Lugo 2021-10-18 09:44:57 -04:00
parent db4a0ddc59
commit a968da10e9

View file

@ -99,6 +99,8 @@ const listenerForAddr = (addr, SEA) => async (order, orderID) => {
return return
} }
// Gun might callback several times for the same order, avoid dupe
// processing.
if (ordersProcessed.has(orderID)) { if (ordersProcessed.has(orderID)) {
return return
} }