Resetting the setInterval system so it can't blow up in our faces.

This commit is contained in:
Alexander Blair 2017-02-21 11:10:45 -08:00
parent 9fd46553b9
commit 0d8afd850f

View file

@ -294,7 +294,7 @@ let paymentQueue = async.queue(function (paymentDetails, callback) {
payments Payment made: {"id":"0","jsonrpc":"2.0","result":{"fee":40199391255,"tx_hash":"c418708643f72635edf522490bfb2cae9d42a6dc1df30dcde844862dfd88f5b3","tx_key":""}} +2s
*/
if (paymentTimer !== null){
paymentTimer.cancel();
clearInterval(paymentTimer);
paymentTimer = null;
}
debug("Making payment based on: " + JSON.stringify(paymentDetails));