Skip to content

Commit

Permalink
Stop reading when error is encountered
Browse files Browse the repository at this point in the history
  • Loading branch information
moogle19 committed May 14, 2020
1 parent cfc7b7b commit fedd77b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Sources/Engine/NativeEngine.swift
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ public class NativeEngine: NSObject, Engine, URLSessionDataDelegate, URLSessionW
break
case .failure(let error):
self?.broadcast(event: .error(error))
return
}
self?.doRead()
}
Expand Down

0 comments on commit fedd77b

Please sign in to comment.