Build with .NET 7.0 release

This commit is contained in:
Li 2022-11-11 02:33:44 +13:00
parent c0bde9f864
commit 6e2f8e7483
2 changed files with 8 additions and 8 deletions

View file

@ -21,8 +21,8 @@ jobs:
- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: 7.0.100-preview.5.22307.18
include-prerelease: true
dotnet-version: 7.0
include-prerelease: false
- name: Install utils
run: |
sudo apt update
@ -191,8 +191,8 @@ jobs:
- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: 7.0.100-preview.5.22307.18
include-prerelease: true
dotnet-version: 7.0
include-prerelease: false
- name: Install utils
run: dotnet tool install -g dotnet-script
@ -315,8 +315,8 @@ jobs:
- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: 7.0.100-preview.5.22307.18
include-prerelease: true
dotnet-version: 7.0
include-prerelease: false
- name: Install utils
run: dotnet tool install -g dotnet-script

View file

@ -122,7 +122,7 @@ namespace HISP.Server
{
try
{
do
while (!GameServer.ServerSocket.AcceptAsync(e))
{
Socket eSocket = e.AcceptSocket;
@ -137,7 +137,7 @@ namespace HISP.Server
if (GameServer.ServerSocket == null)
return;
} while (!GameServer.ServerSocket.AcceptAsync(e));
}
}
catch (ObjectDisposedException ex) { Logger.ErrorPrint("Server shutdown due to " + ex.Message); } // server shutdown
}