From d051b93bdc84b70a2de4d7a25444ddfda2229aef Mon Sep 17 00:00:00 2001 From: Serge Camille Date: Sat, 17 Oct 2020 17:54:30 +0200 Subject: [PATCH] Fix OpenAsync function to rethrow exception during connection establish. This bug was introduced in 106e9912 --- S7.Net/PlcAsynchronous.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/S7.Net/PlcAsynchronous.cs b/S7.Net/PlcAsynchronous.cs index b6b49c6..42b61a7 100644 --- a/S7.Net/PlcAsynchronous.cs +++ b/S7.Net/PlcAsynchronous.cs @@ -35,6 +35,7 @@ namespace S7.Net catch(Exception) { stream.Dispose(); + throw; } }