private void seedTorrent()

in common/src/main/java/jetbrains/buildServer/torrent/seeder/TorrentsSeeder.java [200:212]


  private void seedTorrent(@NotNull File srcFile, @NotNull File torrentFile) {
    try {
      if (isSeeding(torrentFile)) {
        myClient.stopSeeding(torrentFile);
      }
      LOG.debug("Start seeding file: " + srcFile.getAbsolutePath());
      myClient.seedTorrent(torrentFile, srcFile);
    } catch (NoSuchAlgorithmException e) {
      LOG.warnAndDebugDetails("Failed to start seeding torrent: " + torrentFile.getAbsolutePath(), e);
    } catch (IOException e) {
      LOG.warnAndDebugDetails("Failed to start seeding torrent: " + torrentFile.getAbsolutePath(), e);
    }
  }