Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Semaphore Timeout #409

Merged
merged 1 commit into from
Sep 5, 2018
Merged

Fix Semaphore Timeout #409

merged 1 commit into from
Sep 5, 2018

Conversation

Nightsd01
Copy link
Contributor

@Nightsd01 Nightsd01 commented Sep 4, 2018

• When getting the current notification state in iOS 10 +, our SDK was using a semaphore to do this synchronously.
• However, the SDK was waiting on the semaphore with unlimited timeout, so there was the potential to block the thread indefinitely.
• Adds a 100 millisecond timeout to ensure this call never results in a blocked thread
Fixes #407


This change is Reviewable

• When getting the current notification state in iOS 10 +, our SDK was using a semaphore to do this synchronously.
• However, the SDK was waiting on the semaphore with unlimited timeout, so there was the potential to block the thread indefinitely.
• Adds a 100 millisecond timeout to ensure this call never results in a blocked thread
Copy link
Member

@jkasten2 jkasten2 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed 1 of 1 files at r1.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved

@Nightsd01 Nightsd01 merged commit 51c60c1 into master Sep 5, 2018
Nightsd01 added a commit that referenced this pull request Sep 10, 2018
• Fixes an issue (#410) where users that add buttons/functionality to a notification by directly using UNNotificationCategory instead of using our API would cause a crash
• Fixes a thread synchronization issue that would have deadlocked the main thread in very rare situations on initialization (#409)
• Fixes an issue where improperly formatted button JSON would cause the SDK to insert nil objects into an NSDictionary instance, causing an EXC_BAD_ACCESS (#409)
• Adds an additional dynamic framework/cocoapod for developers who previously encountered 'transitive dependency' errors using our SDK indirectly as a dependency of another cocoapod in Swidft projects
@Jeasmine Jeasmine deleted the fix_semaphore_timeout branch May 12, 2020 22:00
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.

2 participants