Skip to content

Commit 6bc3be1

Browse files
committed
refactor: 更新连接状态返回值
1 parent 17a19a0 commit 6bc3be1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/BootstrapBlazor/Services/TcpSocket/DefaultTcpSocketClient.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public override async ValueTask<bool> ConnectAsync(IPEndPoint endPoint, Cancella
5151
{
5252
_ = Task.Run(AutoReceiveAsync);
5353
}
54-
ret = true;
54+
ret = _client.Connected;
5555
}
5656
catch (OperationCanceledException ex)
5757
{

0 commit comments

Comments
 (0)