Skip to content

Commit 4a18f2f

Browse files
committed
Merge branch 'pr/128'
2 parents 303f4d9 + 232e697 commit 4a18f2f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/ReportHandler.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,11 @@ public function handleReport($report, $subscription, $message)
2020
return;
2121
}
2222

23-
Log::warning("Notification failed to sent for subscription {$subscription->endpoint}: {$report->getReason()}");
24-
2523
if ($report->isSubscriptionExpired()) {
2624
$subscription->delete();
25+
26+
return;
2727
}
28+
Log::warning("Notification failed to sent for subscription {$subscription->endpoint}: {$report->getReason()}");
2829
}
2930
}

0 commit comments

Comments
 (0)