Fix issue where web views that never readied themselves would clog up the queue.
This commit is contained in:
parent
fee08ef187
commit
acaeb4164a
|
@ -88,8 +88,8 @@ class WebViewProviderDequeueOperation: MainThreadOperation {
|
||||||
if let webView = queue.lastObject as? PreloadedWebView {
|
if let webView = queue.lastObject as? PreloadedWebView {
|
||||||
webView.ready { preloadedWebView in
|
webView.ready { preloadedWebView in
|
||||||
self.completion(preloadedWebView)
|
self.completion(preloadedWebView)
|
||||||
self.queue.remove(webView)
|
|
||||||
}
|
}
|
||||||
|
self.queue.remove(webView)
|
||||||
self.operationDelegate?.operationDidComplete(self)
|
self.operationDelegate?.operationDidComplete(self)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
|
@ -88,8 +88,8 @@ class WebViewProviderDequeueOperation: MainThreadOperation {
|
||||||
if let webView = queue.lastObject as? PreloadedWebView {
|
if let webView = queue.lastObject as? PreloadedWebView {
|
||||||
webView.ready { preloadedWebView in
|
webView.ready { preloadedWebView in
|
||||||
self.completion(preloadedWebView)
|
self.completion(preloadedWebView)
|
||||||
self.queue.remove(webView)
|
|
||||||
}
|
}
|
||||||
|
self.queue.remove(webView)
|
||||||
self.operationDelegate?.operationDidComplete(self)
|
self.operationDelegate?.operationDidComplete(self)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue