Skip to content

Commit 40a67a4

Browse files
committed
Use MainActor instead of DispatchQueue
1 parent 71f3ee0 commit 40a67a4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

WooCommerce/Classes/Authentication/Navigation Exceptions/JetpackSetupWebViewModel.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ final class JetpackSetupWebViewModel: PluginSetupWebViewModel {
4545
switch url {
4646
// When the web view is about to navigate to the redirect URL for mobile, we can assume that the setup has completed.
4747
case Constants.mobileRedirectURL:
48-
DispatchQueue.main.async { [weak self] in
48+
await MainActor.run { [weak self] in
4949
self?.handleSetupCompletion()
5050
}
5151
return .cancel

0 commit comments

Comments
 (0)