Skip to content

Commit

Permalink
Fixed a hang when using CMClient.Disconnect()
Browse files Browse the repository at this point in the history
  • Loading branch information
Nuclearistt committed Feb 4, 2024
1 parent f7e30dc commit cf1d57b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion TEKSteamClient.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<BaseVersion>1.4.0</BaseVersion>
<BaseVersion>1.4.1</BaseVersion>
<Version>$(BaseVersion)</Version>
<Version Condition="'$(GITHUB_RUN_NUMBER)' != ''">$(BaseVersion)-alpha.$(GITHUB_RUN_NUMBER)</Version>
<Authors>Nuclearist</Authors>
Expand Down
2 changes: 1 addition & 1 deletion src/CM/WebSocketConnection.cs
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ public void Disconnect()
_socket.CloseOutputAsync(WebSocketCloseStatus.EndpointUnavailable, null, default);
}
}
else if (_socket?.State is WebSocketState.Open)
if (_socket?.State is WebSocketState.Open)
_socket.CloseOutputAsync(WebSocketCloseStatus.NormalClosure, null, _cts!.Token);
if (Thread.CurrentThread != _thread)
_thread?.Join();
Expand Down

0 comments on commit cf1d57b

Please sign in to comment.