Fix condition for SOFT_RESET

May receive multiple packets while handling in progress.
This commit is contained in:
Davide De Rosa 2019-05-13 12:15:44 +02:00
parent d06b2e1928
commit 7cbcfcd264
1 changed files with 1 additions and 1 deletions

View File

@ -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)
}