S7NetPlus / s7netplus

S7.NET+ -- A .NET library to connect to Siemens Step7 devices
MIT License
1.29k stars 577 forks source link

Fix reusing Plc after Close() #528

Open ltjax opened 3 months ago

ltjax commented 3 months ago

We got a System.ObjectDisposedException when trying to access a Close()d connection. This is because the cached Plc._stream was not reset when its parent TcpClient was reset.