public bool Stop(out string error) { if (!SocketController.Stop(out error)) { return(false); } //stop all foreach (var thread in updateThreads) { thread.Stop(); } //join all foreach (var thread in updateThreads) { thread.Join(); } if (!Terrain.Stop(out error)) { Log(error); return(false); } if (!ConnectionManager.Stop(out error)) { Log(error); return(false); } return(true); }
public bool Stop(out string error) { if (!SocketController.Stop(out error)) { return(false); } //stop all foreach (var thread in updateThreads) { thread.Stop(); } //join all foreach (var thread in updateThreads) { thread.Join(); } return(Terrain.Stop(out error)); }
private void OnDestroy() { socket_controller_.Stop(); }