Skip to content

Commit

Permalink
Removed an overly-protective check that wasn't actually correct in th…
Browse files Browse the repository at this point in the history
…e first place.
  • Loading branch information
Jon Chambers committed Mar 4, 2015
1 parent 1093fc4 commit 59c4a01
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/main/java/com/relayrides/pushy/apns/ApnsConnection.java
Original file line number Diff line number Diff line change
Expand Up @@ -290,9 +290,7 @@ protected void channelRead0(final ChannelHandlerContext context, final RejectedN
// bug where the sequence number will be incorrectly reported as zero when sending a zero-length token (i.e.
// a known-bad shutdown token). In that case we don't know the actual sequence number, and can't determine
// what was sent after the bad notification.
if (rejectedNotification.getSequenceNumber() != 0 &&
RejectedNotificationReason.MISSING_TOKEN.equals(rejectedNotification.getReason())) {

if (rejectedNotification.getSequenceNumber() != 0) {
final Collection<T> unprocessedNotifications =
this.apnsConnection.sentNotificationBuffer.getAllNotificationsAfterSequenceNumber(
rejectedNotification.getSequenceNumber());
Expand Down

0 comments on commit 59c4a01

Please sign in to comment.