Don't remove from queue until completion handler is called
This commit is contained in:
parent
5efc02f969
commit
739c14fb99
|
@ -113,8 +113,8 @@ class WebViewProviderDequeueOperation: MainThreadOperation {
|
|||
func run() {
|
||||
if let webView = queue.lastObject as? PreloadedWebView {
|
||||
webView.ready { preloadedWebView in
|
||||
self.queue.removeLastObject()
|
||||
self.completion(preloadedWebView)
|
||||
self.queue.remove(webView)
|
||||
}
|
||||
self.operationDelegate?.operationDidComplete(self)
|
||||
return
|
||||
|
|
Loading…
Reference in New Issue