Skip to content

Commit

Permalink
fix: background thread issue ios
Browse files Browse the repository at this point in the history
  • Loading branch information
riderx committed Mar 9, 2022
1 parent c7389ef commit 6bb7e84
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ios/Plugin/CapacitorUpdaterPlugin.swift
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ public class CapacitorUpdaterPlugin: CAPPlugin {
let pathPersist = implementation.getLastPathPersist()
vc.setServerBasePath(path: pathPersist)
UserDefaults.standard.set(pathPersist, forKey: "serverBasePath")
DispatchQueue.global(qos: .background).async {
DispatchQueue.main.async {
vc.loadView()
vc.viewDidLoad()
print("✨ Capacitor-updater: Reset to original version")
Expand Down

0 comments on commit 6bb7e84

Please sign in to comment.