Complete dequeue even if web view fails to initialize
This commit is contained in:
parent
526fe71cf1
commit
f138908e43
|
@ -115,8 +115,8 @@ class WebViewProviderDequeueOperation: MainThreadOperation {
|
|||
queue.removeLastObject()
|
||||
webView.ready { preloadedWebView in
|
||||
self.completion(preloadedWebView)
|
||||
self.operationDelegate?.operationDidComplete(self)
|
||||
}
|
||||
self.operationDelegate?.operationDidComplete(self)
|
||||
return
|
||||
}
|
||||
|
||||
|
@ -126,8 +126,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