mirror of
https://github.com/evopro-ag/Sharp7Reactive.git
synced 2025-12-16 03:42:51 +00:00
Improve robustness of connection
This commit is contained in:
@@ -213,7 +213,7 @@ internal class Sharp7Connector : IS7Connector
|
||||
private void EnsureConnectionValid()
|
||||
{
|
||||
if (disposed)
|
||||
throw new ObjectDisposedException("S7Connector");
|
||||
throw new ObjectDisposedException(nameof(Sharp7Connector));
|
||||
|
||||
if (sharp7 == null)
|
||||
throw new InvalidOperationException("S7 driver is not initialized.");
|
||||
|
||||
Reference in New Issue
Block a user