sync fixes

This commit is contained in:
azivner
2017-11-05 20:37:25 -05:00
parent ba24281f22
commit 2a9a8da045
4 changed files with 38 additions and 23 deletions

View File

@@ -225,8 +225,10 @@ async function sync() {
};
}
let syncContext;
try {
const syncContext = await login();
syncContext = await login();
}
catch (e) {
if (e.message.indexOf('ECONNREFUSED') !== -1) {