Skip to content

Commit

Permalink
Client CloseConnection should not throw socket exceptions.
Browse files Browse the repository at this point in the history
  • Loading branch information
nauful committed Oct 3, 2024
1 parent d27819d commit 8051a82
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions NET Core/LibUA/Client.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1075,6 +1075,10 @@ private void CloseConnection()
OnConnectionClosed?.Invoke();
}
}
catch (SocketException)
{
// Disconnected
}
finally
{
tcp = null;
Expand Down
2 changes: 1 addition & 1 deletion NET Core/LibUA/LibUA.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<Title>LibUA Core</Title>
<RepositoryType>git</RepositoryType>
<RepositoryUrl>https://github.com/nauful/libua</RepositoryUrl>
<Version>1.0.27</Version>
<Version>1.0.28</Version>
<PackageReadmeFile>README.md</PackageReadmeFile>
<PackageLicenseFile>LICENSE</PackageLicenseFile>
</PropertyGroup>
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# LibUA
Open-source OPC UA client and server library for .NET Framework and .NET Core based on IEC 62541. Available a library, a demo client and a demo server. Tested and commercially used in industrial applications with commercial vendors' UA servers and clients.

Available as a nuget package for .NET Core (1.0.27):
Available as a nuget package for .NET Core (1.0.28):
https://www.nuget.org/packages/nauful-LibUA-core

### Features
Expand Down

0 comments on commit 8051a82

Please sign in to comment.