From 2ebe26551293132d0f3b25e3a81dc16793edb819 Mon Sep 17 00:00:00 2001 From: Pathik Botadra Date: Thu, 24 Sep 2015 14:47:35 +0530 Subject: [PATCH] Added status-code 10 to status_table dictionary The status code for Shutdown (Status = 10) was only added to the comments and not to the actual status_table dictionary. The APNS module crashes the moment it encounters status 10. This commit is a fix for that. --- pushservices/apns.py | 1 + 1 file changed, 1 insertion(+) diff --git a/pushservices/apns.py b/pushservices/apns.py index c00f738..a7f6cb5 100644 --- a/pushservices/apns.py +++ b/pushservices/apns.py @@ -176,6 +176,7 @@ def _on_remote_read_close(self, data): 6: "Invalid topic size", 7: "Invalid payload size", 8: "Invalid token", + 10: "Shutdown", 255: "None"} # The error response packet """