Skip to content

Commit 9feca80

Browse files
committed
ensure signalr connection is disconnected before trying to start it
1 parent 9165b9f commit 9feca80

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/web/Jordnaer/SignalR/AuthenticatedSignalRClientBase.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ protected AuthenticatedSignalRClientBase(
3838

3939
public async Task StartAsync(CancellationToken cancellationToken = default)
4040
{
41-
if (!Started && HubConnection is not null)
41+
if (!Started && HubConnection?.State is HubConnectionState.Disconnected)
4242
{
4343
_logger.LogDebug("Starting SignalR Client");
4444

0 commit comments

Comments
 (0)