mirror of
https://github.com/TalAloni/SMBLibrary.git
synced 2025-08-05 07:21:28 +02:00
SMB1Client, SMB2Client: Disconnect: Invoke Socket.Close
This commit is contained in:
parent
b03050028a
commit
18275637d7
2 changed files with 2 additions and 0 deletions
|
@ -171,6 +171,7 @@ namespace SMBLibrary.Client
|
|||
if (m_isConnected)
|
||||
{
|
||||
m_clientSocket.Disconnect(false);
|
||||
m_clientSocket.Close();
|
||||
m_connectionState.ReceiveBuffer.Dispose();
|
||||
m_isConnected = false;
|
||||
m_userID = 0;
|
||||
|
|
|
@ -181,6 +181,7 @@ namespace SMBLibrary.Client
|
|||
if (m_isConnected)
|
||||
{
|
||||
m_clientSocket.Disconnect(false);
|
||||
m_clientSocket.Close();
|
||||
m_connectionState.ReceiveBuffer.Dispose();
|
||||
m_isConnected = false;
|
||||
m_messageID = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue