diff --git a/index.js b/index.js index 8fbce10..d1c713f 100644 --- a/index.js +++ b/index.js @@ -749,7 +749,7 @@ dcClient.on('ready', async () => { }); -sshConn.on('ready', () => { +sshConn.on('ready', await () => { sendLog(`${colors.cyan("[INFO]")} SSH connection established`); console.log("Reloading PBX") reload().then((result) => {