Skip to content

Commit 1a87666

Browse files
author
Hubert Plociniczak
committed
Better naming for delegate method called when receiving CloseOk.
Socket doesn't need to be closed immediately, this will be done eventually in FinishClose method.
1 parent feb598d commit 1a87666

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/client/impl/ConnectionBase.cs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ public ConnectionBase(ConnectionParameters parameters,
128128

129129
m_sessionManager = new SessionManager(this);
130130
m_session0 = new MainSession(this);
131-
m_session0.Handler = new MainSession.SessionCloseDelegate(NotifyReceivedClose);
131+
m_session0.Handler = new MainSession.SessionCloseDelegate(NotifyReceivedCloseOk);
132132
m_model0 = (ModelBase)Protocol.CreateModel(m_session0);
133133

134134
StartMainLoop();
@@ -749,11 +749,10 @@ public void ClosingLoop()
749749
}
750750
}
751751

752-
public void NotifyReceivedClose()
752+
public void NotifyReceivedCloseOk()
753753
{
754754
TerminateMainloop();
755755
closed = true;
756-
m_frameHandler.Close();
757756
}
758757

759758
///<summary>

0 commit comments

Comments
 (0)