Skip to content

Commit 77ccec7

Browse files
authored
Merge pull request #174 from bhaan/on-logon-bug
Ensure OnLogon is called even if seq num too high
2 parents 0cd020c + 0f10c0f commit 77ccec7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

session.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,6 +308,7 @@ func (s *session) handleLogon(msg Message) error {
308308
}
309309

310310
s.peerTimer.Reset(time.Duration(int64(1.2 * float64(s.heartBeatTimeout))))
311+
go s.application.OnLogon(s.sessionID)
311312

312313
if err := s.checkTargetTooHigh(msg); err != nil {
313314
switch TypedError := err.(type) {
@@ -318,7 +319,6 @@ func (s *session) handleLogon(msg Message) error {
318319
}
319320

320321
s.store.IncrNextTargetMsgSeqNum()
321-
go s.application.OnLogon(s.sessionID)
322322
return nil
323323
}
324324

0 commit comments

Comments
 (0)