use of com.turn.ttorrent.client.SharedTorrent in project teamcity-torrent-plugin by JetBrains.
the class TeamcityTorrentClient method stopSeedingByPath.
public void stopSeedingByPath(File file) {
final SharedTorrent torrentByName = myClient.getTorrentByFilePath(file);
if (torrentByName != null) {
LOG.info("Stopped seeding torrent by file: " + file.getAbsolutePath());
myClient.removeTorrent(torrentByName);
}
}
Aggregations