mirror of
https://github.com/ProtonMail/proton-bridge.git
synced 2025-12-18 08:06:59 +00:00
GODT-1859: fix AutoUpdate toggle hanging
This commit is contained in:
@ -485,7 +485,11 @@ func (s *Service) SetIsAutomaticUpdateOn(_ context.Context, isOn *wrapperspb.Boo
|
|||||||
}
|
}
|
||||||
|
|
||||||
s.bridge.SetBool(settings.AutoUpdateKey, isOn.Value)
|
s.bridge.SetBool(settings.AutoUpdateKey, isOn.Value)
|
||||||
|
go func() {
|
||||||
|
defer s.panicHandler.HandlePanic()
|
||||||
|
|
||||||
s.checkUpdateAndNotify(false)
|
s.checkUpdateAndNotify(false)
|
||||||
|
}()
|
||||||
|
|
||||||
return &emptypb.Empty{}, nil
|
return &emptypb.Empty{}, nil
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user