Skip to content

Commit

Permalink
Check message is not tracked before tracking it
Browse files Browse the repository at this point in the history
  • Loading branch information
mgonzalezbaile committed Dec 5, 2018
1 parent ac3bcf4 commit e8e71a3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Subscriber/Error/ErrorMessageHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,9 @@ public function __construct(ErrorMessageTimeoutTracker $tracker, Clock $clock, i

public function handleMessage(Message $message): void
{
$this->tracker->track($message);
if(!$this->tracker->trackedAt($message)){
$this->tracker->track($message);
}

$nowTime = $this->clock->now();
$firstAttemptTime = $this->tracker->trackedAt($message);
Expand Down

0 comments on commit e8e71a3

Please sign in to comment.