Explorar el Código

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

Christian Noon hace 6 años
padre
commit
8efd2d90b4
Se han modificado 1 ficheros con 0 adiciones y 2 borrados
  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.")