From 43eb4c3bfef7c1d1ee7bfe4c0fd108addc535427 Mon Sep 17 00:00:00 2001 From: wltsmrz Date: Mon, 13 Jan 2014 11:59:27 -0800 Subject: [PATCH] Prevent duplicate 'transaction' events from Remote --- src/js/ripple/remote.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/js/ripple/remote.js b/src/js/ripple/remote.js index 2db85e56..2db15291 100644 --- a/src/js/ripple/remote.js +++ b/src/js/ripple/remote.js @@ -445,9 +445,9 @@ Remote.prototype._handleMessage = function(message, server) { // De-duplicate transactions that are immediately following each other var hash = message.transaction.hash; - if (this._received_tx.hasOwnProperty(hash)) break; - - if (message.transaction.validated) { + if (this._received_tx.hasOwnProperty(hash)) { + break; + } else if (message.validated) { this._received_tx[hash] = true; }