GODT-1859: fix AutoUpdate toggle hanging

This commit is contained in:
Romain LE JEUNE
2022-09-20 08:43:26 +02:00
parent de5a4cd8cb
commit e9616a2d3e

View File

@ -485,7 +485,11 @@ func (s *Service) SetIsAutomaticUpdateOn(_ context.Context, isOn *wrapperspb.Boo
}
s.bridge.SetBool(settings.AutoUpdateKey, isOn.Value)
s.checkUpdateAndNotify(false)
go func() {
defer s.panicHandler.HandlePanic()
s.checkUpdateAndNotify(false)
}()
return &emptypb.Empty{}, nil
}