Skip to content

Commit

Permalink
Fixed #109 by including only newer notifications in poll
Browse files Browse the repository at this point in the history
  • Loading branch information
demon-xxi committed Oct 12, 2015
1 parent c24077d commit 42ed91f
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,9 @@ private void getOrWaitForNotifications(final HivePrincipal principal, final Stri
DEFAULT_TAKE, principal);
}

// polling expects only notifications after timestamp to be returned
list.removeIf(n -> !n.getTimestamp().after(timestamp));

if (!list.isEmpty()) {
Response response;
if (isMany) {
Expand Down

0 comments on commit 42ed91f

Please sign in to comment.