From 1842c40d8b9586643097c9ad142c5e447408d14f Mon Sep 17 00:00:00 2001 From: Kartikeya Rokde Date: Wed, 25 Nov 2015 17:41:51 +0530 Subject: [PATCH] FIXED: Error while sending multicast without 'enhanced'. Fixed by putting self._sent_notifications initialization outside self.enhanced in GatewayConnection class --- apns.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apns.py b/apns.py index 826135f..fdc02db 100644 --- a/apns.py +++ b/apns.py @@ -480,7 +480,7 @@ def __init__(self, use_sandbox=False, **kwargs): self._error_response_handler_worker = None self._response_listener = None - self._sent_notifications = collections.deque(maxlen=SENT_BUFFER_QTY) + self._sent_notifications = collections.deque(maxlen=SENT_BUFFER_QTY) def _init_error_response_handler_worker(self): self._send_lock = threading.RLock()