Exemplo n.º 1
0
        public StoppedMode(TorrentManager manager)
            : base(manager)
        {
            CanAcceptConnections = false;

            if (manager.TrackerManager.CurrentTracker != null && manager.TrackerManager.CurrentTracker.Status == TrackerState.Ok)
            {
                _announceWaitHandle = manager.TrackerManager.Announce(TorrentEvent.Stopped);
            }
            else
            {
                manager.OnStopAnnounced();
            }
        }