removed useless method in client

This commit is contained in:
anthonyraymond 2018-01-16 23:37:35 +01:00
parent 5c1e494354
commit d006a8bbe5

View file

@ -122,20 +122,6 @@ public class Client implements TorrentFileChangeAware, ClientFacade {
this.announcerExecutor.awaitForRunningTasks();
}
public void stopTorrent(final InfoHash infoHash) {
try {
this.lock.writeLock().lock();
this.currentlySeedingAnnouncer.stream()
.filter(announcer -> announcer.getTorrentInfoHash().equals(infoHash))
.findFirst()
.ifPresent(announcer ->
this.delayQueue.addOrReplace(AnnounceRequest.createStop(announcer), 1, ChronoUnit.SECONDS)
);
} finally {
this.lock.writeLock().unlock();
}
}
public void onTooManyFailedInARaw(final Announcer announcer) {
try {
this.lock.writeLock().lock();