From 074c2f85a5bb2d8124edeff70a79cc7f96ace950 Mon Sep 17 00:00:00 2001 From: Damien Churchill Date: Tue, 11 Aug 2009 22:51:37 +0000 Subject: [PATCH] return if stats is null or false --- deluge/ui/web/js/Deluge.Statusbar.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/deluge/ui/web/js/Deluge.Statusbar.js b/deluge/ui/web/js/Deluge.Statusbar.js index ac2c2c2cd..0104bf0d8 100644 --- a/deluge/ui/web/js/Deluge.Statusbar.js +++ b/deluge/ui/web/js/Deluge.Statusbar.js @@ -72,6 +72,8 @@ }, update: function(stats) { + if (!stats) return; + function addSpeed(val) {return val + ' KiB/s'} var updateStat = function(name, config) {