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);
        }
Exemple #2
0
        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));
        }
Exemple #3
0
 private void OnDestroy()
 {
     socket_controller_.Stop();
 }