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

@ -5,6 +5,7 @@
- bug fixes
- button: allow writing strings like `"1.0"` in `label` without removing the decimals
- editor: use css variable `--grid-width` at startup and after disabling & enabling the grid
- launcher: regression preventing server halt when built-in client is closed manually beforehand
- widgets
- menu/switch/dropdown: reset value to `undefined` when receiving a value that's not defined in `values`

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++