mirror of
https://github.com/safing/portmaster
synced 2025-09-01 18:19:12 +00:00
Use contexts for updates network connections
This commit is contained in:
parent
b87ba37d4c
commit
27e04da1e5
1 changed files with 2 additions and 2 deletions
|
@ -150,7 +150,7 @@ func start() error {
|
|||
Beta: false,
|
||||
})
|
||||
|
||||
err = registry.LoadIndexes()
|
||||
err = registry.LoadIndexes(module.Ctx)
|
||||
if err != nil {
|
||||
log.Warningf("updates: failed to load indexes: %s", err)
|
||||
}
|
||||
|
@ -234,7 +234,7 @@ func checkForUpdates(ctx context.Context) (err error) {
|
|||
}
|
||||
}()
|
||||
|
||||
if err = registry.UpdateIndexes(); err != nil {
|
||||
if err = registry.UpdateIndexes(ctx); err != nil {
|
||||
log.Warningf("updates: failed to update indexes: %s", err)
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue