Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/PhieF/CarnetElectron.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/server
diff options
context:
space:
mode:
authorPhie <phie@phie.ovh>2020-06-08 01:06:55 +0300
committerPhie <phie@phie.ovh>2020-06-08 01:06:55 +0300
commitabf8df62a5d4d8a93ae733d4352718b76d9b8c24 (patch)
treebfefdb56b2242f84fdc7a3cbc35bbaf9125cbb38 /server
parent82eb4445b024707ab23dbfe31b431eeae9e0f08a (diff)
don't exit when download fails
Diffstat (limited to 'server')
-rw-r--r--server/sync/sync.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/server/sync/sync.js b/server/sync/sync.js
index adc0a3e..5e2790d 100644
--- a/server/sync/sync.js
+++ b/server/sync/sync.js
@@ -178,7 +178,7 @@ Sync.prototype.downloadAndSave = function (remoteDBItem, callback) {
else {
console.logDebug("error " + err)
- sync.exit()
+ callback();
}
})
} else {
@@ -203,7 +203,7 @@ Sync.prototype.downloadAndSave = function (remoteDBItem, callback) {
callback();
}).catch(function (err) {
console.logDebug(err);
- sync.exit();
+ callback();
});
}
}