From 3908e00650492fbb1a83856e7f3669a3b24fa788 Mon Sep 17 00:00:00 2001
From: Ruud <ruud@crashdummy.nl>
Date: Tue, 12 Feb 2013 22:49:44 +0100
Subject: [PATCH] Stop progress search on fail. fix #1409

---
 couchpotato/static/scripts/page/manage.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/couchpotato/static/scripts/page/manage.js b/couchpotato/static/scripts/page/manage.js
index c06c655b..0e44e767 100644
--- a/couchpotato/static/scripts/page/manage.js
+++ b/couchpotato/static/scripts/page/manage.js
@@ -88,7 +88,7 @@ Page.Manage = new Class({
 				'onComplete': function(json){
 					self.update_in_progress = true;
 
-					if(!json.progress){
+					if(!json || !json.progress){
 						clearInterval(self.progress_interval);
 						self.update_in_progress = false;
 						if(self.progress_container){
-- 
GitLab