Skip to content

Closes #75#104

Open
bluegaspode wants to merge 2 commits into
fkuehne:masterfrom
tecease-gmbh:issue_75
Open

Closes #75#104
bluegaspode wants to merge 2 commits into
fkuehne:masterfrom
tecease-gmbh:issue_75

Conversation

@bluegaspode
Copy link
Copy Markdown
Contributor

this pull request, changes two things that can lead to 'lost' events:

  • race condition, when we subscribe to events. Some events can arrive 'early', so we buffer all arrived events
  • race condition, when we add an observer. the subscription that happens before we add an observer could have received events already, to we keep the current state. When an observer is added, when there is known state already it gets an instant notification.

I got a bit rusty with retain/release before ARC was introduced (my used version of upnpx was already moved to ARC). If you review this pull request, please have a lookout, if I made mistakes with the memory management.

Cheers
Stefan

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant