summaryrefslogtreecommitdiffstats
path: root/pkg/updates
diff options
context:
space:
mode:
authorJesse Duffield <jessedduffield@gmail.com>2022-01-28 20:44:36 +1100
committerJesse Duffield <jessedduffield@gmail.com>2022-03-17 19:13:40 +1100
commita90b6efded49abcfa2516db794d7875b0396f558 (patch)
treead9c3738830437064ada223f0978dab1d726b479 /pkg/updates
parentfa8571e1f4c349e401542285ea238acdbd9d17ec (diff)
start refactoring gui
Diffstat (limited to 'pkg/updates')
-rw-r--r--pkg/updates/updates.go10
1 files changed, 4 insertions, 6 deletions
diff --git a/pkg/updates/updates.go b/pkg/updates/updates.go
index 1c52d0419..95fcfa0eb 100644
--- a/pkg/updates/updates.go
+++ b/pkg/updates/updates.go
@@ -144,12 +144,10 @@ func (u *Updater) CheckForNewUpdate(onFinish func(string, error) error, userRequ
return
}
- go utils.Safe(func() {
- newVersion, err := u.checkForNewUpdate()
- if err = onFinish(newVersion, err); err != nil {
- u.Log.Error(err)
- }
- })
+ newVersion, err := u.checkForNewUpdate()
+ if err = onFinish(newVersion, err); err != nil {
+ u.Log.Error(err)
+ }
}
func (u *Updater) skipUpdateCheck() bool {