From 97598ac8ff491652da72fbe56b3ef1f488b85d0c Mon Sep 17 00:00:00 2001 From: Hitul Date: Wed, 18 Feb 2015 18:17:17 +0530 Subject: [PATCH] Fixed: issue #108 --- apns.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apns.py b/apns.py index 826135f..ce945aa 100644 --- a/apns.py +++ b/apns.py @@ -556,7 +556,8 @@ def _make_sure_error_response_handler_worker_alive(self): _logger.warning("error response handler worker is not started after %s secs" % TIMEOUT_SEC) def send_notification_multiple(self, frame): - self._sent_notifications += frame.get_notifications(self) + if self.enhanced: + self._sent_notifications += frame.get_notifications(self) return self.write(frame.get_frame()) def register_response_listener(self, response_listener):