Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
process.on('exit', function() {
if (client != null) {
client.close();
console.log("Connection to Aerospike cluster closed!");
aerospike.releaseEventLoop();
console.log("Event loop released.");
}
});
process.on('exit', function() {
if (client != null) {
client.close();
console.log("Connection to Aerospike cluster closed!");
aerospike.releaseEventLoop();
console.log("Event loop released.");
}
});