From 393a748fdfe2083e45c261301566e51501216155 Mon Sep 17 00:00:00 2001 From: Michael Ackley Date: Fri, 20 Sep 2024 15:30:43 -0500 Subject: [PATCH] Reverts toadmin call sequencing --- session.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/session.go b/session.go index cdcb8603d..49b1b467b 100644 --- a/session.go +++ b/session.go @@ -356,6 +356,7 @@ func (s *session) prepMessageForSend(msg *Message, inReplyTo *Message) (msgBytes } if isAdminMessageType(msgType) { + s.application.ToAdmin(msg, s.sessionID) if bytes.Equal(msgType, msgTypeLogon) { var resetSeqNumFlag FIXBoolean if msg.Body.Has(tagResetSeqNumFlag) { @@ -374,7 +375,6 @@ func (s *session) prepMessageForSend(msg *Message, inReplyTo *Message) (msgBytes msg.Header.SetField(tagMsgSeqNum, FIXInt(seqNum)) } } - s.application.ToAdmin(msg, s.sessionID) } else { if err = s.application.ToApp(msg, s.sessionID); err != nil { return