Fix issue with task cleanup after retry

Destination.notifyFinished method calls finish on
ReplicationTasksStorage.Task objects which are not scheduled for retry.

The issue is that for rescheduled tasks PushOne.isRetrying
will always returns true even if task is already replicated.
That creates a situation where tasks scheduled for retry are
never cleaned up.

Bug: Issue 12754
Change-Id: I4b10c2752da6aa7444f57c3ce4ab70eb00c3f14e
4 files changed
tree: de0003d0747eba64c1b780c7646ab481779bdd4f
  1. .gitignore
  2. .mailmap
  3. .settings/
  4. BUILD
  6. src/