Skip to content

Commit

Permalink
Merge pull request #4 from VolkerBb/master
Browse files Browse the repository at this point in the history
swift 3.1 changes
  • Loading branch information
davidungar authored Apr 1, 2017
2 parents 77686ed + 2f4ecb5 commit 2aace16
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Sources/Promise.swift
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,9 @@ public extension Promise {
)
{
self.init()
let bP = basicPromise // fix for EXC_BAD_ACCESS after update to Swift 3.1 (in func fulfillBasic)
func fulfillBasic(_ r: Result< FulfilledValue >) {
basicPromise.fulfill(r)
bP.fulfill(r)
}
do {
try resolvers(
Expand Down

0 comments on commit 2aace16

Please sign in to comment.