diff --git a/QuickFIXn/Session.cs b/QuickFIXn/Session.cs index d7ef437df..4711a4980 100644 --- a/QuickFIXn/Session.cs +++ b/QuickFIXn/Session.cs @@ -348,7 +348,7 @@ public static Session LookupSession(SessionID sessionID) /// In the latter case, creates a new session using the found wildcard session as a template. /// /// the Session if found or created, otherwise returns null - public static Session GetSession(SessionID sessionID) + public static Session LookupOrCreateDynamicSession(SessionID sessionID) { Session result = LookupSession(sessionID); if (null != result) return result; diff --git a/QuickFIXn/SocketReader.cs b/QuickFIXn/SocketReader.cs index 44f80156a..e5e6f4985 100755 --- a/QuickFIXn/SocketReader.cs +++ b/QuickFIXn/SocketReader.cs @@ -142,7 +142,7 @@ protected void OnMessageFoundInternal(string msg) { if (null == qfSession_) { - qfSession_ = Session.GetSession(Message.GetReverseSessionID(msg)); + qfSession_ = Session.LookupOrCreateDynamicSession(Message.GetReverseSessionID(msg)); if (null == qfSession_) { this.Log("ERROR: Disconnecting; received message for unknown session: " + msg);