Skip to content

Commit ef8b3bb

Browse files
committed
Upgrade to SuperSocket 2.0.0-beta.30
1 parent 8c038e1 commit ef8b3bb

File tree

4 files changed

+17
-4
lines changed

4 files changed

+17
-4
lines changed

Directory.Build.props

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project>
22
<PropertyGroup>
3-
<LangVersion>8.0</LangVersion>
4-
<TargetFrameworks>net6.0;net7.0;net8.0;netstandard2.1</TargetFrameworks>
3+
<LangVersion>12.0</LangVersion>
4+
<TargetFrameworks>net6.0;net7.0;net8.0</TargetFrameworks>
55
</PropertyGroup>
66
<PropertyGroup>
77
<PackageProjectUrl>https://github.com/SuperSocket/SuperSocket.SerialIO</PackageProjectUrl>

src/SuperSocket.SerialIO/SerialIOConnectionListener.cs

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,5 +73,18 @@ public Task StopAsync()
7373
_port?.Close();
7474
return Task.CompletedTask;
7575
}
76+
77+
public void Dispose()
78+
{
79+
var port = _port;
80+
81+
if (port == null)
82+
return;
83+
84+
if (Interlocked.CompareExchange(ref _port, null, port) == port)
85+
{
86+
port.Dispose();
87+
}
88+
}
7689
}
7790
}

src/SuperSocket.SerialIO/SuperSocket.SerialIO.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@
44
</PropertyGroup>
55
<ItemGroup>
66
<PackageReference Include="System.IO.Ports" Version="4.7.0" />
7-
<PackageReference Include="SuperSocket.Server.Abstractions" Version="2.0.0-beta.21" />
7+
<PackageReference Include="SuperSocket.Server.Abstractions" Version="2.0.0-beta.30" />
88
</ItemGroup>
99
</Project>

version.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"$schema": "https://raw.githubusercontent.com/dotnet/Nerdbank.GitVersioning/master/src/NerdBank.GitVersioning/version.schema.json",
3-
"version": "2.0.0-beta.21",
3+
"version": "2.0.0-beta.30",
44
"publicReleaseRefSpec": [
55
"^refs/heads/master$",
66
"^refs/heads/v\\d+(?:\\.\\d+)?$"

0 commit comments

Comments
 (0)