未验证 提交 8efd2d90 编写于 作者: C Christian Noon 提交者: GitHub

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

上级 4df5912d
......@@ -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.")
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册