4 Years Ago
[D11] Fixes for the local game server: 1. Terminating the http thread when the game server is stopped to release the TCP port. Otherwise the client can't download the map. 2. Terminating the ping server without spitting nasty exceptions. 3. Using world cache for the server running in editor. Otherwise the map is not generated and client can't download the map. 4. Removing the hack: now local server returns full URL of the map, including the correct network address and port. Different lifecycle for the TCP Ping server: Stopping the tcp ping server if the main Unity thread is not responding. Restarting the tcp server if the main thread is back. This is also to be used by Rustwork to receive heartbeats from servers and populate the server list correspondingly.