aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/videos.js
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2015-11-24 08:33:59 +0100
committerChocobozzz <florian.bigard@gmail.com>2015-11-24 08:33:59 +0100
commit3bcb78b3aff565996ee0e2aa96bce7f1bdd6d66a (patch)
treeb202172a35956b252282105f614fc9646ca64ebb /src/videos.js
parent2e3b5b0db652ae4787e359aadbd4f52e473b6af7 (diff)
downloadPeerTube-3bcb78b3aff565996ee0e2aa96bce7f1bdd6d66a.tar.gz
PeerTube-3bcb78b3aff565996ee0e2aa96bce7f1bdd6d66a.tar.zst
PeerTube-3bcb78b3aff565996ee0e2aa96bce7f1bdd6d66a.zip
Make the network auto sufficient (eject bad pods with scores)
Diffstat (limited to 'src/videos.js')
-rw-r--r--src/videos.js21
1 files changed, 5 insertions, 16 deletions
diff --git a/src/videos.js b/src/videos.js
index b95219c39..8c44cad95 100644
--- a/src/videos.js
+++ b/src/videos.js
@@ -78,14 +78,9 @@
78 data: params 78 data: params
79 } 79 }
80 80
81 pods.makeSecureRequest(data, function (err) { 81 // Do not wait the secure requests
82 if (err) { 82 pods.makeSecureRequest(data)
83 logger.error('Somes issues when sending this video to friends.', { error: err }) 83 callback(null)
84 return callback(err)
85 }
86
87 return callback(null)
88 })
89 }) 84 })
90 }) 85 })
91 } 86 }
@@ -138,14 +133,8 @@
138 } 133 }
139 134
140 // Yes this is a POST request because we add some informations in the body (signature, encrypt etc) 135 // Yes this is a POST request because we add some informations in the body (signature, encrypt etc)
141 pods.makeSecureRequest(data, function (err) { 136 pods.makeSecureRequest(data)
142 if (err) { 137 callback(null)
143 logger.error('Somes issues when sending we want to remove the video to friends.', { error: err })
144 return callback(err)
145 }
146
147 callback(null)
148 })
149 }) 138 })
150 }) 139 })
151 }) 140 })