Add a FIXME to remeber that there is a minor bug to fix

This commit is contained in:
anthonyraymond 2017-06-08 23:06:18 +02:00
parent 0b39f44ec3
commit d6f5b8f4ee

View file

@ -256,7 +256,7 @@ public class Announcer implements Runnable, AnnounceResponseListener {
event = AnnounceRequestMessage.RequestEvent.NONE;
} catch (final AnnounceException ae) {
logger.warn("Exception in announce for torrent {}", torrent.getTorrent().getName(), ae);
// FIXME : In rare cases, the FIRST announce won't pass, and it will result in the torrent trying to announce each 5 seconds (because default interval is 5). Maybe we should add an error counter, and after 5 successive errors, move this shit to archived.
try {
// TODO : may need a better way to handle exception here, like "retry twice on fail then move to next"
this.moveToNextTrackerClient();