Open jayarjo opened 5 years ago
electron-connect
server starts many electron processes (much more than one or two), I suppose that's just how underlying Chromium works?
But the real problem it seems is that after electron-connect
does killProcess
not all of those processes disappear. At least two are left:
If I kill them off manually then websocket gets finally closed and restart logic kicks in, respawning electron window.
Shouldn't killProcess
shutdown the whole tree of processes?
For me
restart()
closes the window but never opens a new one. From what I see in the source, in order to respawn the process, logic should enter theif (!this.numClients) {...
conditional, but it never does, sincenumClients
is decremented only after the client closes websocket connection and for this to happen, probably process should be killed first.