Fix condition for SOFT_RESET
May receive multiple packets while handling in progress.
This commit is contained in:
parent
d06b2e1928
commit
7cbcfcd264
|
@ -528,7 +528,7 @@ public class SessionProxy {
|
|||
if (code == .hardResetServerV2) && (negotiationKey.controlState == .connected) {
|
||||
deferStop(.shutdown, SessionError.staleSession)
|
||||
return
|
||||
} else if (code == .softResetV1) && (negotiationKey.state != .softReset) {
|
||||
} else if (code == .softResetV1) && !negotiationKey.softReset {
|
||||
softReset(isServerInitiated: true)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue