Complete the dequeue operation even if the web view navigation fails
This commit is contained in:
parent
3dc642318d
commit
4ba2ab4baa
|
@ -116,8 +116,8 @@ class WebViewProviderDequeueOperation: MainThreadOperation {
|
|||
webView.ready { preloadedWebView in
|
||||
preloadedWebView.removeFromSuperview()
|
||||
self.completion(preloadedWebView)
|
||||
self.operationDelegate?.operationDidComplete(self)
|
||||
}
|
||||
self.operationDelegate?.operationDidComplete(self)
|
||||
return
|
||||
}
|
||||
|
||||
|
@ -127,8 +127,8 @@ class WebViewProviderDequeueOperation: MainThreadOperation {
|
|||
webView.preload()
|
||||
webView.ready { preloadedWebView in
|
||||
self.completion(preloadedWebView)
|
||||
self.operationDelegate?.operationDidComplete(self)
|
||||
}
|
||||
self.operationDelegate?.operationDidComplete(self)
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue