From 150f787c81edeca304348f2bd6052c0d120a58ae Mon Sep 17 00:00:00 2001 From: Aliaksei Sapach Date: Sat, 26 Apr 2014 01:01:11 +0300 Subject: [PATCH] set 'not ready' for torrent being verified --- app/scripts/controllers/main.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/scripts/controllers/main.js b/app/scripts/controllers/main.js index f3f082c3..85c2fb83 100644 --- a/app/scripts/controllers/main.js +++ b/app/scripts/controllers/main.js @@ -39,7 +39,9 @@ angular.module('peerflixServerApp') } torrentSocket.on('verifying', function (hash) { - findTorrent(hash); + findTorrent(hash).then(function (torrent) { + torrent.ready = false; + }); }); torrentSocket.on('ready', function (hash) {