From af5fc72ca991843f979cc7b990e683d2cd7926c3 Mon Sep 17 00:00:00 2001 From: R4SAS Date: Mon, 24 Sep 2018 15:35:41 +0300 Subject: [PATCH] fix #1 --- bin/syncBlockchain.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/syncBlockchain.js b/bin/syncBlockchain.js index 7cbf704..c644618 100644 --- a/bin/syncBlockchain.js +++ b/bin/syncBlockchain.js @@ -163,9 +163,9 @@ async function syncBlockchain() { } } catch (e) { console.log('=====', e); - process.exit(0); + } finally { + models.sequelize.close().then(() => process.exit(0)); } - process.exit(0); } syncBlockchain();