File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed
Source/RunActivity/Viewer3D/Processes Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -43,6 +43,15 @@ public WebServerProcess(Game game)
43
43
{
44
44
Game = game ;
45
45
Thread = new Thread ( WebServerThread ) ;
46
+
47
+ // Once the content has been loaded and the simulator is simulating, an exception will cause the web server process
48
+ // to terminate itself.
49
+ // However, an exception during loading will not terminate the web server process, so the application Open Rails Activity Runner
50
+ // will persist until it is removed by the user.
51
+ // A workaround to avoid this behaviour is to push the thread into the background.
52
+
53
+ // This thread is pushed into the background, so it will be terminated automatically when the main thread exits.
54
+ Thread . IsBackground = true ;
46
55
}
47
56
48
57
public void Start ( )
You can’t perform that action at this time.
0 commit comments