UniquePersistent all over, app.forcefully_free

This commit is contained in:
Alex Hultman 2019-01-23 12:59:51 +01:00
parent f2a5d95726
commit ba73b8882d
3 changed files with 34 additions and 19 deletions

View file

@ -37,3 +37,9 @@ 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();
});