Browse Source

Removed session delegate precondition check due to swizzling frameworks (#2783)

Christian Noon 6 years ago
parent
commit
8efd2d90b4
1 changed files with 0 additions and 2 deletions
  1. 0 2
      Source/Session.swift

+ 0 - 2
Source/Session.swift

@@ -54,8 +54,6 @@ open class Session {
                 redirectHandler: RedirectHandler? = nil,
                 cachedResponseHandler: CachedResponseHandler? = nil,
                 eventMonitors: [EventMonitor] = []) {
-        precondition(session.delegate === delegate,
-                     "SessionManager(session:) initializer must be passed the delegate that has been assigned to the URLSession as the SessionDataProvider.")
         precondition(session.delegateQueue.underlyingQueue === rootQueue,
                      "SessionManager(session:) intializer must be passed the DispatchQueue used as the delegateQueue's underlyingQueue as rootQueue.")