Skip to content

Commit

Permalink
Merge pull request alexaubry#2 from briankracoff/dontCrash
Browse files Browse the repository at this point in the history
Don't crash during double-dismiss
  • Loading branch information
briankracoff authored Feb 5, 2018
2 parents 797a4f2 + 47fd2cf commit bf13876
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Sources/BulletinManager.swift
Original file line number Diff line number Diff line change
Expand Up @@ -400,6 +400,9 @@ extension BulletinManager {

@objc(dismissBulletinAnimated:)
public func dismissBulletin(animated: Bool = true) {
if !isPrepared {
return
}

assertIsPrepared()
assertIsMainThread()
Expand Down

0 comments on commit bf13876

Please sign in to comment.