forked from Silverfish/proton-bridge
GODT-1931: fixed bridge crash when checking for update while offline.
This commit is contained in:
@ -373,7 +373,7 @@ func (s *Service) checkUpdateAndNotify(isReqFromUser bool) {
|
|||||||
|
|
||||||
s.checkUpdate()
|
s.checkUpdate()
|
||||||
version := s.newVersionInfo
|
version := s.newVersionInfo
|
||||||
if version.Version.String() == "" {
|
if (version.Version == nil) || (version.Version.String() == "") {
|
||||||
if isReqFromUser {
|
if isReqFromUser {
|
||||||
_ = s.SendEvent(NewUpdateErrorEvent(UpdateErrorType_UPDATE_MANUAL_ERROR))
|
_ = s.SendEvent(NewUpdateErrorEvent(UpdateErrorType_UPDATE_MANUAL_ERROR))
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user