mirror of
https://github.com/wavetermdev/waveterm.git
synced 2025-02-01 23:21:59 +01:00
only show remote upgrade if initpk was received
This commit is contained in:
parent
998a65b873
commit
539e71ad47
@ -897,10 +897,11 @@ 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 {
|
||||
// only set NeedsMShellUpgrade if we got an InitPk
|
||||
msh.NeedsMShellUpgrade = true
|
||||
}
|
||||
}
|
||||
// no notify here, because we'll call notify in either case below
|
||||
})
|
||||
if err == context.Canceled {
|
||||
|
Loading…
Reference in New Issue
Block a user