Skip to content

Commit

Permalink
set 'not ready' for torrent being verified
Browse files Browse the repository at this point in the history
  • Loading branch information
asapach committed Apr 25, 2014
1 parent 92da0d8 commit 150f787
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/scripts/controllers/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 150f787

Please sign in to comment.