We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I have the following code to terminate nodejs cleanly:
process.on('SIGINT', () => { console.info('Señal SIGINT recivida'); console.log('Cerrando el servidor....'); server.close(() => { console.log('Servidor http detenido'); pool.end() .then(() => { console.log('\u001b[36m\u001b[1mConexion a la base de datos terminada\u001b[0m\n') process.exit(0) }) }); });
but when I call pool.end() it just doesn't return to execute what's in the .then ()
pool.end()
.then ()
The text was updated successfully, but these errors were encountered:
The same thing happens to me using client.end()
Sorry, something went wrong.
Client.end
No branches or pull requests
I have the following code to terminate nodejs cleanly:
but when I call
pool.end()
it just doesn't return to execute what's in the.then ()
The text was updated successfully, but these errors were encountered: