mirror of
https://github.com/ProtonMail/proton-bridge.git
synced 2025-12-10 20:56:51 +00:00
Other: Fix wrongly installed version
When manually installing an update, we want to manually install the latest compatible version (`target`), not the absolute latest version (`latest`). This is obviously a bug in the code because the mutex lock being locked was `targetLock` but we were wrongly trying to install `latest`.
This commit is contained in:
@ -530,7 +530,7 @@ func (s *Service) InstallUpdate(ctx context.Context, _ *emptypb.Empty) (*emptypb
|
||||
defer s.panicHandler.HandlePanic()
|
||||
|
||||
safe.RLock(func() {
|
||||
s.bridge.InstallUpdate(s.latest)
|
||||
s.bridge.InstallUpdate(s.target)
|
||||
}, s.targetLock)
|
||||
}()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user