Skip to content

Commit

Permalink
Make code style tweak
Browse files Browse the repository at this point in the history
This is also an attempt to circumvent what I believe is a MultipeerConnectivity
bug that causes didFinishReceivingResourceWithName: method to crash if it
receives an error.
  • Loading branch information
nathankot committed Jan 24, 2017
1 parent 5cab195 commit a1db9b3
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions RxMultipeer/Adapters/MultipeerConnectivitySession.swift
Original file line number Diff line number Diff line change
Expand Up @@ -416,10 +416,9 @@ extension MultipeerConnectivitySession : MCSessionDelegate {
withError err: Error?) {
if let e = err {
_receivedResource.on(.next(peerID, name, ResourceState.errored(e)))
return
} else {
_receivedResource.on(.next(peerID, name, .finished(url)))
}

_receivedResource.on(.next(peerID, name, .finished(url)))
}

public func session(_ session: MCSession,
Expand Down

0 comments on commit a1db9b3

Please sign in to comment.