forked from Silverfish/proton-bridge
fix(GODT-2774): Add external context to telemetry tasks
This ensures they get cancelled if the parent context becomes invalid
This commit is contained in:
committed by
Romain LE JEUNE
parent
6579cdfc7f
commit
c4f80103b6
@ -297,7 +297,7 @@ func (bridge *Bridge) SetColorScheme(colorScheme string) error {
|
||||
// Note: it does not clear the keychain. The only entry in the keychain is the vault password,
|
||||
// which we need at next startup to decrypt the vault.
|
||||
func (bridge *Bridge) FactoryReset(ctx context.Context) {
|
||||
useTelemetry := bridge.IsTelemetryAvailable()
|
||||
useTelemetry := bridge.IsTelemetryAvailable(ctx)
|
||||
|
||||
// Delete all the users.
|
||||
safe.Lock(func() {
|
||||
|
||||
Reference in New Issue
Block a user