only show remote upgrade if initpk was received

This commit is contained in:
sawka 2022-10-04 11:15:59 -07:00
parent 998a65b873
commit 539e71ad47

View File

@ -897,9 +897,10 @@ func (msh *MShellProc) Launch() {
if cproc != nil && cproc.InitPk != nil {
msh.Remote.InitPk = cproc.InitPk
mshellVersion = cproc.InitPk.Version
}
if semver.Compare(mshellVersion, MShellVersion) < 0 {
msh.NeedsMShellUpgrade = true
if semver.Compare(mshellVersion, MShellVersion) < 0 {
// only set NeedsMShellUpgrade if we got an InitPk
msh.NeedsMShellUpgrade = true
}
}
// no notify here, because we'll call notify in either case below
})