arcam / CocoaUPnP

CocoaUPnP is a logical progression of upnpx; designed to be easy, modern and block-based.
MIT License
85 stars 40 forks source link

Subscription handling #21

Closed squarefrog closed 9 years ago

squarefrog commented 9 years ago

I have seen a couple of crashes where the library attempts to insert nil into a dictionary due to lack of sanity checking during re-subscription.

This patch tightens up the two flows (resubscribe, and subscription expired) to make handling more robust.