diff options
Diffstat (limited to 'src/videos.js')
-rw-r--r-- | src/videos.js | 21 |
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 | }) |