Skip to content

Commit b6e0e6f

Browse files
committed
Revert "refactor: 接收方法内异常改为日志"
This reverts commit 44e4bd3.
1 parent e4d04f7 commit b6e0e6f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/BootstrapBlazor/Services/TcpSocket/DefaultTcpSocketClient.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,8 +119,7 @@ private async Task ReceiveAsync()
119119
{
120120
if (_client is not { Connected: true })
121121
{
122-
Logger.LogError("TCP Socket is not connected {LocalEndPoint}", LocalEndPoint);
123-
break;
122+
throw new InvalidOperationException($"TCP Socket is not connected {LocalEndPoint}");
124123
}
125124

126125
try

0 commit comments

Comments
 (0)