Fix crash on broken links

This commit is contained in:
Mattias Erming 2015-01-03 18:58:12 -08:00
parent 318dcea39b
commit e54feda878
1 changed files with 5 additions and 1 deletions

View File

@ -89,7 +89,11 @@ function parse(msg, url, res, client) {
}
function fetch(url, cb) {
var req = request.get(url);
try {
var req = request.get(url);
} catch(e) {
return;
}
var length = 0;
var limit = 1024 * 10;
req