Webserver causing orphaned processes when app crashes during initialization
Closed this issue · 2 comments
perpetualKid commented
the webserver keeps sleeping while waiting for an Program.Viewer instance to be assigned
When ActivityRunner crashes during loading and exception is caught in GameStateRunActivity, the webserver keeps waiting causing orphaned application instances and not ending the application properly.
current workaround - hard exit using Environment.Exit after
This needs some refactoring. Ideally the web server only needs to start when loading process is finished.
HengYeDev commented
I believe I can reproduce - when I kill the process during loading there's sometimes still a process there and I have to kill it with kill
command
perpetualKid commented
preliminary fixed but should be revised when any refactoring in WebServer