Ive run into a problem for a while where when trying to launch Lunar it finishes downloading the JRE and then crashes with the message "Launch Aborted"
I did as much research as i could and found some code that may prevent this issue. All it does is "listen" for the 'error' and prevents the program from crashing. The issue the code fixes is
// Callback for a new connection, invoked when a client connects
server.on('connection', socket => {
// Add "error" event listener
socket.on('error', err => {
// Do something clever with the error here
});
});
If anyone else has any suggestions i would love to hear them.
Heres a screenshot of the reddit post: