mirror of https://github.com/calzoneman/sync.git
Slight tweak to urlRetrieve error handler
This commit is contained in:
parent
5cbdb47eb1
commit
918b865a9b
|
@ -52,7 +52,9 @@ var urlRetrieve = function (transport, options, callback) {
|
|||
Logger.errlog.log(err.stack);
|
||||
Logger.errlog.log("urlRetrieve failed: " + err);
|
||||
Logger.errlog.log("Request was: " + options.host + options.path);
|
||||
callback(503, "");
|
||||
setImmediate(function () {
|
||||
callback(503, "");
|
||||
});
|
||||
});
|
||||
d.run(function () {
|
||||
var req = transport.request(options, function (res) {
|
||||
|
|
Loading…
Reference in New Issue