/** * Stop this download. Calls stop() on the ManagedTorrent, and then removes it from the * TorrentManager's list of them. */ public void stop() { // Tell the ManagedTorrent to stop if (!_torrent.hasStopped()) _torrent.stop(); // Remove it from the program's list RouterService.getTorrentManager().removeTorrent(_torrent, true); }
/** * Determine if this BitTorrent download is paused or stopped. * * @return True if the ManagedTorrent is paused or has stopped. False if it's going. */ public boolean isInactive() { // Return true if the ManagedTorrent is paused or stopped return _torrent.isPaused() || _torrent.hasStopped(); }