We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 44a9f8a commit d7101a3Copy full SHA for d7101a3
src/SignalR/clients/csharp/Client.Core/src/HubConnection.cs
@@ -1596,7 +1596,7 @@ private async Task ReceiveLoop(ConnectionState connectionState)
1596
var timer = new TimerAwaitable(TickRate, TickRate);
1597
var timerTask = connectionState.TimerLoop(timer);
1598
1599
- var uploadStreamSource = new CancellationTokenSource();
+ using var uploadStreamSource = new CancellationTokenSource();
1600
connectionState.UploadStreamToken = uploadStreamSource.Token;
1601
var invocationMessageChannel = Channel.CreateUnbounded<InvocationMessage>(_receiveLoopOptions);
1602
0 commit comments