You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This... never works. process.exit(1) does, the process isn't hung, it just never gets the idea that the node event loop is empty. Is there a way to make it so the event loop can empty when an MQTT connection is available? It may already be possible, I just don't know how.
The text was updated successfully, but these errors were encountered:
I would like to set a hook for shutdown, something like this:
process.on('exit', () => { mqttConnection.end(true).then(()=>{}).catch(()=>{});
This... never works.
process.exit(1)
does, the process isn't hung, it just never gets the idea that the node event loop is empty. Is there a way to make it so the event loop can empty when an MQTT connection is available? It may already be possible, I just don't know how.The text was updated successfully, but these errors were encountered: