zendframework / ZendService_Apple_Apns

BSD 3-Clause "New" or "Revised" License
49 stars 70 forks source link

Update AbstractClient.php #59

Closed yuesh closed 5 years ago

yuesh commented 7 years ago

Send multiple token for the first time when send a notification, there was a token error, the connection will not shut down. Then continue to send a notification, it will throw exceptions( Connection has already been opened and must be closed ), cannot continue to send. I don't think it is reasonable.

weierophinney commented 6 years ago

Why are you calling open() more than once? The only reason you will get that exception currently is if you call $client->open() repeatedly, which you shouldn't be doing.

Can you provide more background, please? Best would be a code sample detailing how to reproduce the issue.

weierophinney commented 5 years ago

Closing due to lack of feedback from author.