mirror of
https://github.com/signalapp/Signal-Server.git
synced 2026-12-01 03:16:47 +00:00
Don't retry APN on bad device token
This commit is contained in:
1 parent
a5f844bc7d
commit
ed766484d2
1 file changed
+3
-1
@@ -131,7 +131,9 @@ public class RetryingApnsClient {
|
||||
|
||||
if (response.isAccepted()) {
|
||||
future.set(new ApnResult(ApnResult.Status.SUCCESS, null));
|
||||
} else if ("Unregistered".equals(response.getRejectionReason())) {
|
||||
} else if ("Unregistered".equals(response.getRejectionReason()) ||
|
||||
"BadDeviceToken".equals(response.getRejectionReason()))
|
||||
{
|
||||
future.set(new ApnResult(ApnResult.Status.NO_SUCH_USER, response.getRejectionReason()));
|
||||
} else {
|
||||
logger.warn("Got APN failure: " + response.getRejectionReason());
|
||||
|
||||
Reference in new issue
Block a user