mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-18 05:36:00 +00:00
ssh tunnel WIP
This commit is contained in:
@@ -166,7 +166,9 @@ function start() {
|
||||
if (time - lastPing > 40 * 1000) {
|
||||
logger.info('Server connection not alive, exiting');
|
||||
const driver = requireEngineDriver(storedConnection);
|
||||
await driver.close(dbhan);
|
||||
if (dbhan) {
|
||||
await driver.close(dbhan);
|
||||
}
|
||||
process.exit(0);
|
||||
}
|
||||
}, 10 * 1000);
|
||||
|
||||
Reference in New Issue
Block a user