From ae82b5ad26b8b439a2c371f4fc4d6421167b71e0 Mon Sep 17 00:00:00 2001 From: Josh Harvey Date: Sun, 27 Apr 2014 11:27:58 -0400 Subject: [PATCH] fixed balance polling bug --- lib/trader.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/trader.js b/lib/trader.js index 9cda76c0..afc1f765 100644 --- a/lib/trader.js +++ b/lib/trader.js @@ -189,9 +189,9 @@ Trader.prototype.sendBitcoins = function (deviceFingerprint, tx, cb) { return cb(err); } - cb(null, txHash); self.db.completeTransaction(tx, txHash); - self.pollRate(); + self.pollBalance(); + cb(null, txHash); } ); }