summaryrefslogtreecommitdiff
path: root/pkg/backend/init.go
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/backend/init.go')
-rw-r--r--pkg/backend/init.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/pkg/backend/init.go b/pkg/backend/init.go
index b7469c1..fcde725 100644
--- a/pkg/backend/init.go
+++ b/pkg/backend/init.go
@@ -29,10 +29,11 @@ func initializeContext(opts *InitOpts) {
DonateDialog: false,
Version: version.VERSION,
Status: st,
+ IsReady: false,
}
errCh := make(chan string)
- go trigger(OnStatusChanged)
go checkErrors(errCh)
+ // isReady is set after Bitmask initialization
initializeBitmask(errCh, opts)
go trigger(OnStatusChanged)
ctx.delayCheckForGateways()
@@ -86,6 +87,7 @@ func initializeBitmask(errCh chan string, opts *InitOpts) {
errCh <- "nopolkit"
}
ctx.bm = b
+ ctx.IsReady = true
}
func setConfigOpts(opts *InitOpts, conf *config.Config) {