Closed vvo closed 10 years ago
I was wondering why I got "stop server" when exiting without having the nodeAgent started.
Dunno if it makes sense, if it does, please publish :-)
That is odd because .stop() is already making sure a server was started before attempting to close it: https://github.com/vvo/node-webkit-agent/blob/master/index.js#L163-L181
I wanted to get rid of uneeded console.log() when I did not start the server, maybe I should just move console.log() upper?
yes exactly, when you do not start debugging and process stops, you still get the console.log
@c4milo can we find a solution to fix this? Do you want me to change my PR?
Haha, sorry man, I've been traveling. Sure, just move the console.log line inside the conditional where it is checking of server is defined in the stop() function.
BTW, I'll be in France in April. I hope to see you there!
Alright @vvo, it should be fixed in v0.2.3. Sorry for the delay.
@c4milo Thank you, I did not take the time to fix my PR. As for April it would be amazing to meet you. Drop me an email before you arrive: vincent@zeroload.net
When process exits, stop nodeAgent only if it has started