HTML second build fails

Hi, I’ve got a weird problem : I’m building this project for HTML and everything runs fine the first launch. When i build a second time without touching anything, i get the following error log, stopping execution :

throw er; // Unhandled ‘error’ event
Error: listen EADDRINUSE
at errnoException (net.js:904:11)
at Server._listen2 (net.js:1042:14)
at listen (net.js:1064:10)
at net.js:1146:9
at dns.js:72:18
at process._tickCallback (node.js:419:13)
at Function.Module.runMain (module.js:499:11)
at startup (node.js:119:16)
at node.js:906:3
[Finished in 7.0s with exit code 1]
[shell_cmd: openfl test … html5]
[dir: /Users/pol/PROD/MixIt/Source]
[path: /Users/pol/anaconda3/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/share/dotnet:/Library/Frameworks/Mono.framework/Versions/Current/Commands]

… any ideas? The workaround I have for now is… rebooting the computer each and every time! ( gasp )

You can only have 1 instance running.
Because each start, it uses Port 3000, the 2nd time that fails because the port is already taken.
Just stop the first. (How depends on your IDE)

Thanks, I don’t see how it’s an IDE thing though ( I’m using Sublime )? Shouldn’t it be some OpenFL command to stop the process and close the port?

Are you using Windows?
if so, try opening an administrative command prompt and enter:
taskkill /F /IM node.exe

I’m using OS X, but I certainly can do something similar

The command to use in the Terminal is Ctrl + C.

You can also openfl run html5 in one window, then openfl build html5 in another when changes are made