From 9cc966295c4e7ef5df834a4e6fed6e08bbeb0a79 Mon Sep 17 00:00:00 2001 From: matiboy Date: Sat, 24 Jan 2015 04:53:03 +0800 Subject: [PATCH] (fix) APNs: Missing _sent_notifications Define self._sent_notifications Fixes #104 --- 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()