mirror of
https://github.com/Sneed-Group/pypush-plus-plus
synced 2025-01-09 17:33:47 +00:00
bug: .pop() payload from incoming queue always
This commit is contained in:
parent
bcffab8d28
commit
a043673ff0
1 changed files with 2 additions and 2 deletions
4
apns.py
4
apns.py
|
@ -115,9 +115,9 @@ class APNSConnection:
|
|||
if payload.id == id:
|
||||
if filter is not None:
|
||||
if filter(payload):
|
||||
return payload
|
||||
return self._incoming_queue.pop()
|
||||
else:
|
||||
return payload
|
||||
return self._incoming_queue.pop()
|
||||
while True:
|
||||
await self._queue_park.wait() # Wait for a new payload to be added to the queue
|
||||
logger.debug(f"Woken by event, checking for {id}")
|
||||
|
|
Loading…
Reference in a new issue