mirror of
https://github.com/ProtonMail/proton-bridge.git
synced 2026-02-04 08:18:34 +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:
@ -277,6 +277,7 @@ func (s *Service) watchEvents() {
|
||||
safe.RLock(func() {
|
||||
s.latest = event.Version
|
||||
}, s.latestLock)
|
||||
|
||||
_ = s.SendEvent(NewUpdateVersionChangedEvent())
|
||||
|
||||
case events.UpdateAvailable:
|
||||
|
||||
Reference in New Issue
Block a user