Skip to content

Commit 8c9f904

Browse files
committed
Automatic merge of T1.6-rc2-41-gacd714487 and 9 pull requests
- Pull request #1072 at 3033f96: Content Creation Shortcuts & Advanced Wagon Shape Interactions - Pull request #1086 at e10390b: Add Settings Exporter tool (copy settings to INI, etc) - Pull request #1091 at 35f0051: Automatic speed control - Pull request #1107 at f5eb3dc: Fix DPMode when last remote is moved to front. - Pull request #1108 at cd5c185: Fix Horn, Bell, and MU light conditions on AI trains - Pull request #1109 at 0190043: Fix Erroneous Detection of Departure Before Passenger Boarding Completed - Pull request #1110 at 387388e: Fix Activity Runner persists after loading exception - Pull request #1082 at 5845a1a: Allow variable water level in glass gauge - Pull request #1081 at 689494b: Brake cuts power unification
11 parents 81e8a26 + acd7144 + 3033f96 + e10390b + 35f0051 + f5eb3dc + cd5c185 + 0190043 + 387388e + 5845a1a + 689494b commit 8c9f904

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

Source/RunActivity/Viewer3D/Processes/WebServerProcess.cs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,15 @@ public WebServerProcess(Game game)
4343
{
4444
Game = game;
4545
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;
4655
}
4756

4857
public void Start()

0 commit comments

Comments
 (0)