Clean exit, remove forcefully_free

This commit is contained in:
Alex Hultman 2019-03-02 04:38:01 +01:00
parent 319eea90bd
commit a43675c197
7 changed files with 33 additions and 38 deletions

View file

@ -37,9 +37,3 @@ const app = uWS./*SSL*/App({
console.log('Failed to listen to port ' + port);
}
});
/* This is questionable */
process.on('beforeExit', () => {
console.log('Forcefully freeing app now');
app.forcefully_free();
});