Skip to content

Commit

Permalink
Fix internally cached NetworkStream not being reset
Browse files Browse the repository at this point in the history
  • Loading branch information
Marius Elvert committed May 14, 2024
1 parent ab6308e commit 01c0423
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions S7.Net/PLC.cs
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,7 @@ public void Close()
if (tcpClient.Connected) tcpClient.Close();
tcpClient = null; // Can not reuse TcpClient once connection gets closed.
}
_stream = null;
}

private void AssertPduSizeForRead(ICollection<DataItem> dataItems)
Expand Down

0 comments on commit 01c0423

Please sign in to comment.