Skip to content

Commit

Permalink
Fixes #63.
Browse files Browse the repository at this point in the history
  • Loading branch information
ashfurrow committed Oct 9, 2014
1 parent 9da8145 commit 7ad2599
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions Moya+ReactiveCocoa.swift
Original file line number Diff line number Diff line change
Expand Up @@ -70,13 +70,13 @@ public class ReactiveMoyaProvider<T where T: MoyaTarget>: MoyaProvider<T> {
}
}

return nil
}).finally({ [weak self] () -> Void in
if let weakSelf = self {
objc_sync_enter(weakSelf)
weakSelf.inflightRequests[endpoint] = nil
objc_sync_exit(weakSelf)
}
return RACDisposable(block: { () -> Void in
if let weakSelf = self {
objc_sync_enter(weakSelf)
weakSelf.inflightRequests[endpoint] = nil
objc_sync_exit(weakSelf)
}
})
}).publish().autoconnect()

if let weakSelf = self {
Expand Down

0 comments on commit 7ad2599

Please sign in to comment.