Exemplo n.º 1
0
        public virtual void StopNetwork()
        {
            Acceptor.Close();

            if (_threadCount != 0)
            {
                for (int i = 0; i < _threadCount; ++i)
                {
                    _threads[i].Stop();
                }
            }

            Wait();

            Acceptor     = null;
            _threads     = null;
            _threadCount = 0;
        }
Exemplo n.º 2
0
 public override void disable()
 {
     billAcceptor.Close();
 }