mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2025-08-12 06:26:36 +00:00
Fix issue where web views that never readied themselves would clog up the queue.
This commit is contained in:
@@ -88,8 +88,8 @@ class WebViewProviderDequeueOperation: MainThreadOperation {
|
||||
if let webView = queue.lastObject as? PreloadedWebView {
|
||||
webView.ready { preloadedWebView in
|
||||
self.completion(preloadedWebView)
|
||||
self.queue.remove(webView)
|
||||
}
|
||||
self.queue.remove(webView)
|
||||
self.operationDelegate?.operationDidComplete(self)
|
||||
return
|
||||
}
|
||||
|
||||
@@ -88,8 +88,8 @@ class WebViewProviderDequeueOperation: MainThreadOperation {
|
||||
if let webView = queue.lastObject as? PreloadedWebView {
|
||||
webView.ready { preloadedWebView in
|
||||
self.completion(preloadedWebView)
|
||||
self.queue.remove(webView)
|
||||
}
|
||||
self.queue.remove(webView)
|
||||
self.operationDelegate?.operationDidComplete(self)
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user