Complete the dequeue operation even if the web view navigation fails

This commit is contained in:
Maurice Parker 2020-07-08 13:22:19 -05:00
parent 3dc642318d
commit 4ba2ab4baa
1 changed files with 2 additions and 2 deletions

View File

@ -116,8 +116,8 @@ class WebViewProviderDequeueOperation: MainThreadOperation {
webView.ready { preloadedWebView in
preloadedWebView.removeFromSuperview()
self.completion(preloadedWebView)
self.operationDelegate?.operationDidComplete(self)
}
self.operationDelegate?.operationDidComplete(self)
return
}
@ -127,8 +127,8 @@ class WebViewProviderDequeueOperation: MainThreadOperation {
webView.preload()
webView.ready { preloadedWebView in
self.completion(preloadedWebView)
self.operationDelegate?.operationDidComplete(self)
}
self.operationDelegate?.operationDidComplete(self)
}
}