Skip to content

Commit

Permalink
FranzCross,auto-update: run immediate update check in bg thread
Browse files Browse the repository at this point in the history
  • Loading branch information
Bogdanp committed Oct 28, 2023
1 parent 8e9db54 commit 9f52632
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions FranzCross/auto-update.rkt
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
racket/string
"common.rkt"
"mixin.rkt"
"preference.rkt")
"preference.rkt"
"thread.rkt")

(provide
start-auto-updater
Expand All @@ -34,10 +35,11 @@
#:version franz-version
#:frequency (and check-for-updates? check-interval))))
(when (and check-for-updates? check-now?)
(match (auto-updater-check updater)
[`(#f #f) (void)]
[`(,changelog ,release)
(do-update-available changelog release)]))
(thread*
(match (auto-updater-check updater)
[`(#f #f) (void)]
[`(,changelog ,release)
(do-update-available changelog release)])))
(set! the-auto-updater updater))

(define (stop-auto-updater)
Expand Down

0 comments on commit 9f52632

Please sign in to comment.