Fix a if condition to fix missing event in tracker request.

This commit is contained in:
anthonyraymond 2017-02-19 21:30:48 +01:00
parent b03b29a79e
commit 98ad5abc95

View file

@ -146,7 +146,7 @@ public final class HTTPAnnounceRequestMessage extends HTTPTrackerMessage impleme
emulatedClientQuery = emulatedClientQuery
.replaceAll("\\{key}", URLEncoder.encode(emulatedClient.getKey().get(), Torrent.BYTE_ENCODING));
}
if (this.getEvent() == null || RequestEvent.NONE != this.getEvent()) {
if (this.getEvent() == null || this.getEvent() == RequestEvent.NONE) {
// if event was NONE, remove the event from the query string
emulatedClientQuery = emulatedClientQuery.replaceAll("(event=\\{event})", "");
} else {