launcher: regression preventing server halt when built-in client is closed manually beforehand

This commit is contained in:
jean-emmanuel 2021-04-23 10:18:54 +02:00
parent 5459eb1950
commit 6813be50fb
2 changed files with 4 additions and 0 deletions

View file

@ -151,6 +151,9 @@ function stopServerProcess() {
var toClose = [...clientWindows].filter(w=>w && !w.isDestroyed()),
closed = 0
if (toClose.length === 0) serverProcess.kill()
for (var w of toClose) {
w.on('closed', ()=>{
closed++