Browse Source

Merge pull request #2 from r4sas/fix-1

Close MySQL connection on end of sync
pull/1/head
xcps 6 years ago committed by GitHub
parent
commit
87e68bb601
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      bin/syncBlockchain.js

4
bin/syncBlockchain.js

@ -163,9 +163,9 @@ async function syncBlockchain() {
} }
} catch (e) { } catch (e) {
console.log('=====', e); console.log('=====', e);
process.exit(0); } finally {
models.sequelize.close().then(() => process.exit(0));
} }
process.exit(0);
} }
syncBlockchain(); syncBlockchain();

Loading…
Cancel
Save