diff --git a/classes/CMarketItem.js b/classes/CMarketItem.js index 5da39e5..6bbf59b 100644 --- a/classes/CMarketItem.js +++ b/classes/CMarketItem.js @@ -124,6 +124,8 @@ CMarketItem.prototype.updatePrice = function(callback) { self.highestBuyOrder = parseInt(body.highest_buy_order, 10); // TODO: The tables? - callback(); + if(callback) { + callback(); + } }); };