electron: prevent possible error when stopping server
This commit is contained in:
parent
3451feef24
commit
dc7ac2bcd3
1 changed files with 1 additions and 1 deletions
|
|
@ -143,7 +143,7 @@ function stopServerProcess() {
|
|||
var toClose = clientWindows.filter(w=>w && !w.isDestroyed()),
|
||||
closed = 0
|
||||
|
||||
if (toClose.length === 0) {
|
||||
if (toClose.length === 0 && serverProcess) {
|
||||
serverProcess.kill('SIGINT')
|
||||
serverProcess = null
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue