Complete dequeue even if web view fails to initialize

This commit is contained in:
Maurice Parker 2020-07-08 13:39:44 -05:00
parent 526fe71cf1
commit f138908e43
1 changed files with 2 additions and 2 deletions

View File

@ -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)
}
}