Fixed files error

This commit is contained in:
Diego Rodríguez 2016-03-12 03:10:52 -03:00
parent e6686057c8
commit f0369a07b3

View file

@ -81,7 +81,7 @@ app.controller 'BTorrentCtrl', ['$scope','$rootScope','$http','$log','$location'
setInterval updateAll, 500
$rootScope.seedFiles = (files) ->
if files?
if files? && files.length > 0
if files.length == 1
dbg 'Seeding file ' + files[0].name
else